/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.progress-bar
{
    margin-top:3px;
     margin-bottom:3px;

}

.montant-actuel-solde
{
     margin-top:3px;
     margin-bottom:3px;
}
      .large_ligne
      {
         zoom:0.9 !important;
      }

.oeil_mdp
{
    width: inherit !important;
}

.hero-bottom-content
{
    margin-top:8rem;
}
.stats-container
{
    display: flex;
    flex-direction: column;
    margin: 40px 0 !important;
    justify-content: center;
    padding: 0 30px;
    padding-bottom: 2rem;
}

.icon_coordonnees
 {
    opacity: 1 !important;
   transform: scale(1.075) !important;
 }


.close 
{
    color:black !important;
}

.icon_coordonnees
{
    width:60px;
    height:60px;
}

.espace_margin
{
    margin-bottom: 3rem;
}

html {
    scroll-behavior: smooth;
    font-family: dm-serif-display, serif;
}

body {
    width: 100% !important;
    font-family: 'DM Serif Display', serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden !important;
}
button{
    font-family: 'DM Serif Display', serif;
}

p{
    font-size: 12px;
}

h1{
    font-size: 30px!important;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 3.5rem!important;
    color: var(--bg-dark);
}

.valeurs-grid h3 {
    margin-bottom: 1rem!important;
}

.span{
    color: #a30404;
}
strong {
    font-weight: 600;
}

.container {
    max-width: 89% !important;
    margin: 0 auto;
    padding: 0 20px;
}

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



/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomInTop {
    from {
        opacity: 0;
        transform: scale(0) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(-50%);
    }
}

@keyframes zoomInBottom {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.puits-img-top {
    animation: fadeIn 2s ease-out; 
    transform-origin: center bottom;
}

.puits-illustration-bottom {
    animation: zoomInBottom 1s ease-out;
    transform-origin: center top; 
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}


/* Classes helper pour l'affichage responsive du puits */
@media (min-width: 993px) {
    
    
    .desktop-order-none {
        order: unset !important;
    }
}

@media (max-width: 992px) {
    .mobile-column {
        display:flex;
        flex-direction: column;
    }
    
}

/* Séparateur entre sections */
.separator-line {
    width: 80%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 40px auto;
    position: relative;
}

/* Séparateur pointillé */
.dotted-separator {
    width: 80%;
    max-width: 800px;
    height: 1px;
    margin: 0px auto;
    border: none;
    background-image: linear-gradient(to right, var(--red-color) 50%, transparent 50%);
    background-size: 15px 1px;
    background-repeat: repeat-x;
    position: relative;
}

.affluence-organisation-sections{
    background: var(--circular-main-gradient);
}
/* Section Affluence */
.affluence-section {
    padding-top: 60px;
    margin: 0 auto;
    
}


.affluence-content {
    display: flex;
    flex-direction: column;
}

.affluence-content h2 {
    margin-bottom: 30px;
    font-size: 2.2rem;
    text-align: left;
}

/* Pourquoi nous choisir */
.why-choose-content {
    display: flex;
    flex-direction: column;
}

.why-choose-content h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.why-choose-content p {
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Project Illustrations */
.project-illustrations {
    display: flex;
    gap: 75px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.illustration-img {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    background-color: white;
    object-fit: cover !important;
}

@media screen and (min-width: 768px) {
    .mentions-legales-button{
        display: none !important;
    }
}
@media screen and (max-width: 1200px) {
    .project-illustrations {
        flex-direction: column !important;
        gap: 60px;
    }
}
@media screen and (max-width: 768px) {
    
     .hero-content {
        text-align: center;
    }
    .illustration-img {
        width: 120px;
        height: 120px;
    }
    .organisation-image{
        display:none;
    }
    .valeur-illustration{
        padding:0px !important;
        max-width: 122px !important;
    }
    .sadaqah-container{
        flex-direction: column;
    }
    .sadaqah-content{
        margin-top:0px !important;
    }
    .sadaqah-title{
        text-align: left !important;
    }
    .sadaqah-container-content p{
        text-align: left !important;
    }
    .sadaqah-container-content{
        width: 100% !important;
    }
    .donation-illustration{
        width: 207px !important;
        height: 207px !important;
        margin: auto;
    }
}

/* Section Organisation */
.organisation-section {
    padding: 40px 0 0 0;
    position: relative;
    padding-bottom:1.5rem;
}

.organisation-container {
    display: flex;
    flex-direction: row-reverse;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    width: 89%;
    margin: 0 auto;
    padding: 0 20px;
}

.organisation-content {
    padding: 20px 0 0 0;
    text-align: right;
    width: 100%;
    padding-bottom: 5rem;
}
.organisation-content p{
    text-align: right;
}


.organisation-pillars {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
    padding-left: 5px;
    margin: 20px 0 25px 0;
}

.organisation-pillars li {
    list-style: none !important;
    list-style-type: none !important;
    text-align: right;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 12px;
    /* line-height: 0.4; */
    color: var(--text-color);
}

.organisation-pillars li:before {
    
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.organisation-image {
    margin-top: 100px;
}

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

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.thumbnail {
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Media Queries pour les écrans plus petits */
@media screen and (max-width: 768px) {
    .choose-button{
        font-size: 12px !important;
        padding: 12px 0px !important;
    }

    .donation-options-section
    {
        padding-bottom:3rem;
    }

    .espace-fix-mobile
    {
        margin-top:-1rem;
    }

    .espace-fix-mobile-grand
    {
        margin-top:-0.5rem;
    }

    .affluence-container,
    .organisation-container {
        grid-template-columns: 1fr;
    }
     .hero-content {
        text-align: center;
    }
     /* Ajuster les marges et le spacing pour le contenu */
    .hero-bottom-content {
        margin-top: 32px;
        padding: 20px 0; /* Ajouter du padding vertical */
    }
    
    /* Améliorer l'espacement des paragraphes */
    .hero-bottom-content p {
        line-height: 1.7; /* Augmenter l'interligne */
        margin-bottom: 20px; /* Espacement entre paragraphes */
        text-align: left; /* Justifier le texte */
        text-justify: inter-word; /* Améliorer la justification */
        padding: 0 10px; /* Petit padding sur les côtés */
    }
    
    /* Titre principal plus lisible */
    .hero-bottom-content h1 {
        line-height: 1.3;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    /* Centrer le cercle d'objectif */
    .objective-circle {
        margin-left: auto;
        margin-right: auto;
    }
    .gallery-thumbnails {
        flex-direction: column;
        align-items: center;
    }
    
    .thumbnail {
        width: 80%;
        max-width: 300px;
        height: 200px;
    }
}


/* Section Réseau Social */
.network-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    position: relative;
}

.network-header {
    text-align: left;
    margin-bottom: 60px;
}

.network-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: left;
}

.network-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.network-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.network-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.icon-container {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.icon-container i {
    font-size: 24px;
}

.network-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.network-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Séparateur ondulé bas */
.wave-separator-bottom {
    height: 120px;
    width: 100%;
    background: url('../images/wave-separator-bottom.svg') no-repeat;
    background-size: cover;
    background-position: center top;
    margin-bottom: -1px;
    position: relative;
    z-index: 5;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .network-grid {
        grid-template-columns: 1fr;
    }
    
    .network-header h2 {
        font-size: 1.8rem;
    }
    
    .network-intro {
        font-size: 1.1rem;
    }
    
    .wave-separator-bottom {
        height: 60px;
    }
}

/* Section Dons */
.donation-section {
    padding: 80px 0;
    background-color: white;
    position: relative;
}

.donation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.donation-content {
    padding-right: 20px;
}

.donation-content h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.donation-intro {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.6;
}

.donation-details h3 {
    font-size: 1.6rem;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.donation-details p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.highlight-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 5px 5px 0;
}

.highlight-box p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.highlight-box p:first-child {
    font-size: 1.3rem;
}

.highlight-box strong {
    color: var(--primary-color);
}

.tax-info {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.benefit-list {
    margin: 30px 0;
}

.benefit-list h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--bg-dark);
}

.benefit-list ul {
    list-style-type: none;
    padding-left: 5px;
}

.benefit-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.benefit-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.donation-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

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

@media screen and (max-width: 768px) {
    .sadaqah-section-container{
        width: 100% !important;
    }
    .sadaqah-container{
        max-width: 89%;
        padding: 0 20px;
    }
    .donation-grid {
        grid-template-columns: 1fr;
    }
    
    .donation-content {
        padding-right: 0;
        order: 1;
    }
    
    .donation-illustration {
        order: 0;
        margin-bottom: 0.5rem !important;
        margin-top: 2.5rem !important;
    }

    .donation-illustration img 
    {
        width:200px !important;
        height: 200px!important;
    }
    
    .donation-content h2 {
        font-size: 1.8rem;
    }
    
    .donation-intro {
        font-size: 1.1rem;
    }
}

/* Section "Cette puits est le fruit de votre investissement" */
.investment-result-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    position: relative;
}

.investment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.investment-left h2,
.investment-right h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

.investment-left p,
.investment-right p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-color);
}

.donors-count {
    margin: 25px 0;
}

.donors-count p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}


.progress-container {
    border-radius: 5px;
    padding: 4px;
    display: flex;
    justify-content: space-between;
    background: var(--main-gradient);
    position: relative;
    z-index: 20;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Styles communs pour les barres de progression */
.progress-bar {
    width:50%;
    height: 20px;
    overflow: hidden;
}

.progress {
    margin-left: 2px;
    border-radius: 5px;
    height: 100%;
    background-color: white;
    transition: width 0.8s ease-in-out;
}


/* Ajout pour compatibilité avec l'admin */
.progress-fill {
    height: 100%;
    background: var(--main-gradient);
    transition: width 0.8s ease-in-out;
}

.network-slogan {
    text-align: center;
    margin-top: 30px;
}

.network-slogan h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .investment-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .investment-left h2,
    .investment-right h2 {
        font-size: 1.7rem;
    }
    
    .progress-container {
        /*width:90% !important;*/
        margin:auto;
    }
    
    .progress-percentage,
    .progress-amount {
        margin: 5px 0;
    }
    .progress-bar-button {
        width: 100% !important;
        margin:auto;
    }
}

.form-file {
    margin-bottom: 25px;
}

.file-label {
    display: block;
    padding: 12px 15px;
    background-color: #f5f5f5;
    border: 1px dashed #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.95rem;
}

input[type="file"] {
    display: none;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-container {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    display: flex;
    align-items: center;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e6e6e6;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Informations de visite */
.visit-info {
    padding-left: 20px;
}

.organization-info,
.address-info,
.opening-hours {
    margin-bottom: 30px;
}

.visit-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.visit-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--text-color);
}

.visit-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.visit-info a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .visit-info {
        padding-left: 0;
    }
}

/* Organisation Photos Style */
.organisation-photos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.photo-frame {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border: 8px solid white;
    outline: 2px solid #9b2220;
    overflow: hidden;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
    position: relative;
}

.photo-frame:nth-child(2) {
    transform: rotate(0deg);
}

.photo-frame:nth-child(3) {
    transform: rotate(5deg);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-frame:hover {
    transform: scale(1.05) rotate(0deg);
}

@media screen and (max-width: 768px) {
    .organisation-photos {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .photo-frame {
        width: 220px;
        height: 220px;
    }
}

/* Section Valeurs Fondamentales */
.valeurs-section {
    background-color: var(--brown-color);
    color: #fff;
    position: relative;
}

.valeurs-section .container 
{

}

.valeurs-section .section-title {
    color: #fff;
    margin-bottom: 60px;
}

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding: 0 20px;
    margin: 60px 40px;
}

.donation-options-section
{
    padding-bottom: 4rem ;
}

.valeurs-section .container
{
    margin-bottom: 5rem;
}
.valeur-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.valeur-illustration {
    
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width:220px;
}

.valeur-illustration img {
    max-width: 100%;
    max-height: 100%;
}

.valeur-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}



.valeur-description {
color: black;
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
}


.objective-star {
   
}


.paragraphe-couleur
    {
         background: #efefef;
    padding: 30px;
    border-radius: 10px;
    max-width: 50% !important;

    margin-top:1rem !important;
    margin-bottom: 10rem !important;
    }

/* enlever background paragraphes si pc desktop */


@media screen and (min-width: 1200px) {
    .background-paragraphe
    {
        background-color: transparent !important;
        padding: 0!important;
        border-radius: 0 !important;
    }
    
}


/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .valeurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media screen and (max-width: 768px) {
    .contact-container{
        flex-direction: column;
    }
    .sadaqah-container-hadith{
        width: 60% !important;
    }
    .valeurs-grid {
        grid-template-columns: 1fr;
    }
    
    .valeurs-section .section-title {
        font-size: 2rem;
    }
    
    .valeur-card {
        margin-bottom: 40px;
    }

    .valeur-card:last-child {
        margin-bottom: 0;
    }
}

/* Section Sadaqah Jariyah */
.sadaqah-section {
    padding: 0 0 60px 0;
    background-color: var(--bg-light);
    position: relative;
}

.sadaqah-section .section-title {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
}

.sadaqah-content {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.sadaqah-text {
    margin-bottom: 50px;
}

.sadaqah-text p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 5px;
    text-align: left;
}

.donation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:50px;
}

.donation-illustration
{
    width:50%;
}


.donation-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.supporters-count {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

.supporters-count .highlight {
    color: #3498db;
    font-weight: bold;
}



.monthly-amount {
    text-align: right;
    color: #3498db;
    font-weight: bold;
    font-size: 1rem;
}

.invest-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin: 15px 0;
    align-self: center;
    max-width: 80%;
}

.wells-count {
    display: flex;
    justify-content: center;
}

.wells-circle {
    width: 130px;
    height: 130px;
    background:var(--main-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.wells-number {
    font-size: 12px;
    line-height: 1;
}

.wells-label {
    font-size: 12px;
    margin-top: 5px;
}

.hadith-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px 30px;
}

.hadith-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.hadith-section blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin: 15px 0;
    padding: 0 20px;
    position: relative;
    color: #555;
}

.hadith-source {
    font-size: 0.9rem;
    color: #777;
    margin: 10px 0 20px;
}

.hadith-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

@media screen and (max-width: 992px) {
    .donation-container {
        flex-direction: column;
    }
    
    .donation-illustration, 
    .donation-stats {
        max-width: 100%;
        width: 100%;
    }
    
    .donation-illustration {
        margin-bottom: 30px;
    }
}
@media screen and (min-width: 1000px) and (max-width: 1150px) {

.objective-circle {
width: 120px;
    height: 120px;
    background: var(--main-gradient);
    border-radius: 50%;
    display: flex
;
    justify-content: center;
    align-items: center;
    color: white;
    margin-bottom: 20px;
    margin: 0rem auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

    .stats-container {
        > div {
            padding-right: 0 !important;
        }
}


.montant-actuel-solde
{
    padding-right:0.5rem;
}

}


@media screen and (max-width: 1000px) {
    /* Correction des largeurs et alignements */
    .sadaqah-section-container {
        /*width: 100% !important;*/
        padding: 0 15px;
    }

    
    /* Restructuration du container principal */
    .sadaqah-container {
        flex-direction: column;
        max-width: 100%;
        margin: 0 auto;
        align-items: center;
    }
    
    /* Alignement du titre et paragraphes */
    .sadaqah-container-content {
        width: 100%;
        text-align: left;
    }
    
    .objective-circle {
    width: 120px;
    height: 120px;
    background: var(--main-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


    .sadaqah-title {
        text-align: left;
        margin-bottom: 20px;
        font-size: 1.8rem;
    }
    
    /* Centrage de l'image */
    .donation-illustration {
        margin: 60px auto;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    .donation-illustration img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ajustement du bloc de statistiques */
    .sadaqah-content {
        margin-top: 20px !important;
        width: 100%;
    }
    
    /* Centrage du cercle de puits */
    .wells-count {
        display: flex;
        justify-content: center;
    }
    
    /* Centrage du hadith */
    .sadaqah-container-hadith {
        width: 100% !important;
        text-align: center;
        margin: 30px auto 0;
    }
    
    /* Pour s'assurer que les éléments de la barre de progression sont visibles et centrés */
    .progress-container {
       width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto !important;
    }
    
    /* Centrer le texte de pourcentage dans la barre de progression */
    .progress-bar .progress p {
        width: 100%;
        text-align: center;
    }
    
    /* Ajuster le texte du montant sur la droite */
    .progress-container p[style*="color:white"] {
        text-align: right;
        width: 100%;
    }
    
    /* Centrer et ajuster la phrase concernant les donateurs */
    .stats-text {
        text-align: center !important;
        font-size: 12px !important; /* Réduire la taille de police */
        width: 100% !important;
        margin: 0 auto 10px auto !important;
        line-height: 1.3 !important;
    }

    .sadaqah-content
    {
        padding: 0 !important;
    }
    
    /* Assurer que le bouton de don est bien centré */
    .sadaqah-content .donation-container .donation-stats div[style*="display:flex"] {
        justify-content: center !important;
    }
}

/* Section Options de Dons */
.donation-options-section {
    padding: 60px 0 20px 0;
    background: var(--circular-main-gradient);
    border-radius: 20px;
    position: relative;
    padding-bottom: 4rem;
    margin-top:-2rem;
}

.options-selector {
    padding: 7px 7px;
    font-size: 12px;
    background: var(--main-gradient);
    border-radius: 5px;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
}


.donation-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Pour forcer Don Mensuel et Don Annuel sur la première ligne */
.donation-card:nth-child(1), 
.donation-card:nth-child(2) {
    
}

/* Pour forcer Don Libre sur la deuxième ligne */
.donation-card:nth-child(3) {
    flex: 0 0 100%;
    max-width: 320px;
}

.donation-card {
    width: 320px;
    background-color: var(--brown-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.card-header {
    background: var(--main-gradient);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.card-content {
    color: white;
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-icon {
       margin: 0px 0px;
    width: 150px;
    height: 150px;
    display: flex
;
    justify-content: center;
    align-items: center;
    margin-top: -1rem;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
}

.card-description {
    background-color: #d9d9d9;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.card-description p {
    color: black;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.card-amount {
    display: flex;
    align-items: baseline;
    color: black;
}

.amount-value {
    font-size: 36px;
    margin-right: 5px;
}

.amount-frequency {
    font-size: 12px;
    opacity: 0.9;
}

.amount-info {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 15px;
    text-align: center;
    color: var(--red-color);
}

.card-input {
    /* align-self: start; */
    width: 217px;
    border-color: black;
    margin: 10px 0 20px;
    color: var(--bg-light);
    font-family: 'DM Serif Display', serif;
    font-size: 14px;
}

/* Styles optimisés pour les champs de montant */
.card-input input,
.amount-input {
    color: #000000 !important; /* Texte noir pour une meilleure lisibilité */
    font-family: 'DM Serif Display', serif !important;
    font-size: 12px !important; /* Texte saisi en 12px */
    padding: 8px !important;
    border: 2px solid black !important;
    border-radius: 5px !important;
    background-color: white !important;
   
    box-sizing: border-box !important;
}

/* Placeholder en 6px avec bonne lisibilité */
.card-input input::placeholder,
.amount-input::placeholder {
    color: #333333 !important; /* Gris foncé pour plus de contraste */
    opacity: 0.9 !important; /* Opacity élevée pour la lisibilité */
    font-size: 10px !important; /* Placeholder en 6px comme demandé */
    font-weight: 500 !important;
}

/* Focus pour améliorer l'expérience utilisateur */
.card-input input:focus,
.amount-input:focus {
    outline: none !important;
    border-color: var(--red-color) !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2) !important;
}

.choose-button {
    background-color: var(--red-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 30px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 70%;
    
}

.choose-button
{
    margin-bottom:0.4rem;
}

 /* Boutons Explorer */
    .explore-button {
      font-size: 12px !important;
    display: inline-block;
    padding: 5px 24px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    height: 28px;
    display: flex;
    justify-content: center;
    text-align: center;
    margin:auto;
    margin-top:1rem;
    background: linear-gradient(90deg, #5de0e6, #004aad);
    }

.choose-button:hover {
    background-color: #8b0000;
}

@media screen and (max-width: 992px) {
    .donation-cards-container {
        gap: 40px;
    }

    .donation-card {
        width: 90%;
        max-width: 350px;
    }
    
    /* Ajustement pour tablettes */
    .card-input input,
    .amount-input {
        font-size: 14px !important; /* Légèrement plus grand sur tablette */
    }
    
    .card-input input::placeholder,
    .amount-input::placeholder {
        font-size: 10px !important; /* Placeholder un peu plus grand sur tablette */
    }
}

@media screen and (max-width: 768px) {

    .card-input
{
    width: 70%;
}

.stats-container
{
    margin-bottom:1rem ;
}


    .donation-cards-container {
        flex-direction: column;
        align-items: center;
    }
   
    .donation-card {
        width: 90%;
        max-width: 350px;
        margin-bottom: 20px;
    }
    
    /* Optimisation mobile */
    .card-input input,
    .amount-input {
        font-size: 16px !important; /* Taille optimisée pour mobile */
        padding: 8px !important; /* Plus d'espace pour les doigts */
        border-width: 2px !important; /* Bordure légèrement moins épaisse sur mobile */
    }
    
    .card-input input::placeholder,
    .amount-input::placeholder {
        font-size: 10px !important; /* Placeholder plus lisible sur mobile */
        line-height: 6px !important;
        position: relative;
        top: -4px;
    }
    
    .card-input {
        width: 80%; /* Champ plus large sur mobile */
    }

    .organisation-content,.organisation-content p,.organisation-pillars li
{
    text-align: left ;
    padding: 0 !important;
}


}
/* Styles supplémentaires pour assurer la cohérence */
.admin-sidebar {
    background: var(--main-gradient) !important;
    color: white;
    padding: 20px;
}

/* Image animation on scroll */
.fade-in-image {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transform-origin: center center;
}

.fade-in-image.visible {
  opacity: 1;
  transform: scale(1);
}

/* Additional animations for other elements */
.fade-in-element {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transform-origin: center center;
}

.fade-in-element.visible {
  opacity: 1;
  transform: scale(1.05);
}







textarea
{
    margin-top:0.25rem !important;
}
.donation-card:nth-child(3)
{
    max-width:350px;
}


.donation-cards-container
{
    gap:60px;
}

form{width: 100% !important}

.donation-options-section
{
    padding-bottom: 3rem;
}

.sadaqah-container-hadith
{
    width: 85% !important
}

.valeur-illustration
{
    max-width: 200px;
}

.organisation-pillars
{

}

.sadaqah-section
{
    margin-top:-0.5rem;
}
.valeurs-section
{
    margin-top:-2rem;
}

.organisation-section
{
    padding:0;
}

.espace-vide-mobile
{
    padding-top:2rem;
}

.espace-vide-petit-mobile
{
    padding-top:1rem;
}

.espace-vide-trespetit-mobile
{
    padding-top: 0.01rem;
    margin-bottom: -1rem;
}

.project-illustrations
{
    margin-top:3rem;
     margin-bottom:3rem;

}

.organisation-pillars li
{
    margin-bottom: 0;
}

.organisation-pillars li,.organisation-pillars
{
    padding-left:0
}




.slider-wrapper
{
    border-radius:5px !important;
}

/* Card specific animation with slight delay for staggered effect */
.fade-in-card {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transform-origin: center center;
}

.fade-in-card.visible {
  opacity: 1;
  transform: scale(1);
}

.choose-button {
    width: 217px;
}


/* */

/* Le bouton original reste dans son emplacement normal */
.donation-button {
    /* Rien de spécial, reste dans le flow */
}

/* Le bouton cloné isolé - JAMAIS dans le layout */
.donation-button.sticky-isolated {
    /* Position absolument fixe */
    position: fixed !important;
    bottom: 20px !important;
    
    /* AJUSTEZ ICI LA POSITION HORIZONTALE */
    left: 50% !important;                    /* Centré horizontalement */
    transform: translateX(-50%) translateY(20px) translateZ(0) !important; /* Centrage parfait */
    
    /* OU utilisez une de ces alternatives : */
    /* right: 20px !important; */           /* Coin droit */
    /* left: 20px !important; */            /* Coin gauche */
    
    /* Z-index maximum */
    z-index: 2147483647 !important;
    
    /* Complètement hors du layout */
    contain: strict !important;
    isolation: isolate !important;
    
    /* Propriétés de transformation */
    backface-visibility: hidden !important;
    opacity: 0 !important;
    
    /* Transitions fluides */
    transition: 
        opacity 0.2s ease-out,
        transform 0.2s ease-out !important;
    
    /* Style visuel */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    
    /* Assurer l'interactivité */
    pointer-events: auto !important;
    
    /* Taille fixe pour éviter les recalculs */
    width: 160px !important;
    height: 30px !important;
    white-space: nowrap !important;
}

/* États du bouton isolé */
.donation-button.sticky-isolated[style*="opacity: 1"] {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) translateZ(0) !important;
}

/* Optimisations mobile */
@media (max-width: 768px) {
    .donation-button.sticky-isolated {
        bottom: 15px !important;
        right: 15px !important;
        /* Transitions plus rapides sur mobile */
        transition: 
            opacity 0.1s ease-out,
            transform 0.1s ease-out !important;
    }
}

/* Cache le bouton original pendant le développement (optionnel) */
/*
.donation-button:not(.sticky-isolated) {
    opacity: 0.3;
}
*/

/* Bouton Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 15px; /* Position normale à droite */
    width: 50px;
    height: 50px;
    background: var(--main-gradient);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 999999 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    
    /* Centrage parfait */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Masqué par défaut */
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
}

/* Visible après scroll */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1); /* Juste scale, pas de translateX */
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 16px;
        bottom: 80px;
        right: 30px;
    }
}


.background-paragraphe
{
    background: #efefef;
    padding: 15px;
    border-radius: 10px;
}





/* section contact et animation */
.contact-container {
    width: 100%;
    display: flex;
    justify-content: space-around !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    color: white;
    align-items: flex-start !important;
}

.contact-container > div {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 20px 10px !important;
    text-align: center !important;
}

.contact-container h1 {
    color: white;
    margin-bottom: 15px !important;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item-gauche {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.contact-item-droite {
    position: relative;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.contact-animated-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.contact-text {
    position: absolute;
    background: #e0e0e0;
    color: black;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: all 1s ease;
    white-space: nowrap;
    z-index: 1;
    
    /* LARGEUR FIXE POUR TOUS LES BLOCS */
    width: 200px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.contact-text-left {
    right: 25px;
    transform: translateX(30px);
}

.contact-text-right {
    left: 25px;
    transform: translateX(-30px);
}

.contact-item-gauche:hover .contact-text,
.contact-item-droite:hover .contact-text {
    opacity: 1;
    transform: translateX(0);
}

.contact-item-gauche:hover .contact-icon,
.contact-item-droite:hover .contact-icon {
    transform: scale(1.1);
}

.contact-section-visible .contact-text {
    opacity: 1;
    padding: 0.5rem 0rem;
    transform: translateX(0);
}

.contact-section-visible .contact-icon {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column !important;
        text-align: center !important;
        max-width: 100% !important;
    }
    
    .contact-text {
        font-size: 12px;
        padding: 6px 12px;
        width: 150px !important; /* Largeur réduite sur mobile */
    }
}



/* RESPONSIVE MOBILE */
@media (max-width: 768px) {

    .contact-item-gauche
    {
        margin-left:-50%;
    }

    .contact-item-droite
    {
        margin-right:-50%;
    }
    .contact-container {
        flex-direction: column !important;
        text-align: center !important;
        max-width: 80% !important;
        align-items: center !important;
    }
    
    .contact-container > div {
        width: 100% !important;
        text-align: center !important;
    }
    
    .contact-container h1 {
       
    }

    .titregauche {
        text-align: left !important;
        justify-content: left !important;
    }

    .titredroite {
        text-align: right !important;
        justify-content: right !important;
    }


    
    .contact-item-gauche,
    .contact-item-droite {
        justify-content: center !important;
    }
    
    .contact-text {
        font-size: 12px;
        padding: 8px 25px !important; /* Encore plus de padding */
        width: 220px !important; /* Bloc encore plus large */
    }
    
    /* Mail et téléphone : texte vers la droite - PLUS SUR L'ICÔNE */
    .contact-item-gauche .contact-text-left {
        right: -185px !important; /* Encore plus proche pour rentrer davantage sur l'icône */
        left: auto !important;
        transform: translateX(-30px) !important;
    }
    
    .contact-item-gauche:hover .contact-text-left,
    .contact-section-visible .contact-item-gauche .contact-text-left {
        transform: translateX(0) !important;
    }
    
    /* Facebook et Instagram : texte vers la gauche - PLUS SUR L'ICÔNE */
    .contact-item-droite .contact-text-right {
        left: -185px !important; /* Encore plus proche pour rentrer davantage sur l'icône */
        right: auto !important;
        transform: translateX(30px) !important;
    }
    
    .contact-item-droite:hover .contact-text-right,
    .contact-section-visible .contact-item-droite .contact-text-right {
        transform: translateX(0) !important;
    }
}


/* consentement cookies */

/* ===== STYLES POUR LE CONSENTEMENT AUX COOKIES (VERSION INLINE) ===== */

/* Banner de consentement */
.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: black;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px;
    transition: bottom 0.3s ease, height 0.4s ease;
    border-top: 1px solid #e0e0e0;
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cookie-consent-banner.cookie-banner-visible {
    bottom: 0;
    z-index: 999999999999999999;
    border-radius: 15px 15px 0px 0px;
    border: none;
}

/* Animation d'expansion des préférences */
.cookie-consent-banner.preferences-expanded {
    height: 50vh;
    max-height: 50vh;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
}

.cookie-banner-text {
    flex-shrink: 0;
    width: 100%;
    transition: opacity 0.3s ease;
}

.cookie-banner-text h3 {
    font-size: 21px;
    font-weight: 400;
    margin: 0 0 8px 0;
    color: white;
    margin-bottom: 12px !important;
    text-align: left;
}

.cookie-banner-text p {
    text-align: left;
    margin: 0;
    color: white;
    font-size: 12px;
    line-height: 1.4;
}

/* Header vide avec seulement le bouton close */
.cookie-preferences-header {
    display: none;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 40px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Bouton de fermeture rond rouge */
.cookie-preferences-close {
    width: 13px;
    height: 13px;
    background: #ff4444;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.cookie-preferences-close:hover {
    background: #ff2222;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

/* Section des préférences inline */
.cookie-preferences-section {
    flex: 1;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    overflow-y: auto;
    padding-right: 10px;
}

.cookie-preferences-section.preferences-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-preferences-content {
    width: 100%;
    height: 100%;
}

.cookie-modal-description {
    margin: 0 0 25px 0;
    color: #ccc;
    line-height: 1.6;
    font-size: 12px;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
}



.cookie-category {
    border-radius: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.cookie-category-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 10px;
}



.cookie-category-header h3 {
    margin: 0 !important;
    font-size: 16px;
    font-weight: 400;
    color: white;
}

.cookie-preferences-content h3
{
    color:white;
    margin-bottom:1rem !important;
}
.cookie-status-always {
    background: #efefef;
    color: black;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 400;
     margin-left: auto;
}

.cookie-category p {
    margin: 0;
    color: #ccc;
    font-size: 12px;
    line-height: 1.5;
}

/* Boutons fixés en bas */
.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-direction: column;
    width: 100%;
    margin-top: auto;
    padding-top: 15px;
}

#cookie-reject {
    transition: opacity 0.3s ease;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 40px;  /* Réduit de 50px à 40px */
    height: 20px; /* Réduit de 24px à 20px */
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 14px; /* Réduit de 18px à 14px */
    width: 14px;  /* Réduit de 18px à 14px */
    left: 3px;
    bottom: 3px;
    background-color: black;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider:before {
    transform: translateX(20px); /* Réduit de 26px à 20px pour s'adapter à la nouvelle largeur */
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #8f8f8f;
    transition: 0.3s;
    border-radius: 24px;
}



input:checked + .cookie-slider {
    background-color: white;
    
}



/* Boutons */
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.cookie-btn-accept {
    background: #efefef;
    color: black;
}

.cookie-btn-accept:hover {
    background: #e0e0e0;
    color: black;
}

.cookie-btn-reject:hover {
    background: #efefef;
    color: black;
}

.cookie-btn-reject {
    background: transparent;
    color: white;
}

.cookie-btn-secondary {
    background: transparent;
    color: white;
}

.cookie-btn-secondary:hover {
    background: #efefef;
    color: black;
}

/* cookie desktop */

@media (min-width: 769px) {
   .cookie-banner-actions {
       flex-direction: row;
       justify-content: end;
       gap: 15px;
   }
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 15px;
        max-height: 50vh;
    }
    
    .cookie-consent-banner.preferences-expanded {
        height: 50vh;
        max-height: 50vh;
    }
    
    .cookie-banner-content {
        gap: 15px;
    }
    
    .cookie-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 10px;
    }
    
    .cookie-btn {
        min-width: 80px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .cookie-category {
        padding: 12px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-toggle {
        align-self: flex-end;
    }
    
    /* Header des préférences sur mobile */
    .cookie-preferences-header {
        height: 35px;
    }
    
    /* Bouton de fermeture plus petit sur mobile */
    .cookie-preferences-close {
        width: 13px;
        height: 13px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        max-height: 60vh;
    }
    
    .cookie-consent-banner.preferences-expanded {
        height: 60vh;
        max-height: 60vh;
    }
    
    .cookie-banner-text h3 {
        font-size: 18px;
    }
    
    .cookie-banner-text p {
        font-size: 11px;
    }
    
    .cookie-btn {
        min-width: 70px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .cookie-category-header h3 {
        font-size: 14px;
    }
    
    .cookie-category p {
        font-size: 11px;
    }
}

/* Animation d'entrée */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-visible {
    animation: slideUp 0.3s ease;
}

/* Scrollbar personnalisée pour la bannière étendue */
.cookie-consent-banner::-webkit-scrollbar {
    width: 6px;
}

.cookie-consent-banner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.cookie-consent-banner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.cookie-consent-banner::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* CHATBOT */


/* CHATBOT */

/* ===== STYLES CHATBOT SADAQAH JARIYAH ===== */
/* À ajouter dans votre fichier CSS principal */

/* Icône du chatbot */
.chatbot-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 100px;
    height: auto;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: bounceIn 0.8s ease;
}

.chatbot-icon:hover {
    transform: scale(1.1);
}

.chatbot-icon.chat-open {
    background: #666;
}

.chatbot-icon img {
    width: 100px;
    height: auto;
    border-radius: 50%;
}

.chatbot-notification {
    position: absolute;
    top: -5px;
    display: none;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    animation: pulse 2s infinite;
}

/* Bulle de greeting */
.chatbot-greeting {
    position: fixed;
    bottom: 20px;
    left: 120px;
    background: white;
    padding: 12px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    max-width: 200px;
    font-size: 14px;
    color: #333;
}

.chatbot-greeting.show {
    opacity: 1;
    transform: translateX(0);
}

.greeting-content {
    position: relative;
}

.greeting-arrow {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

/* Fenêtre du chatbot */
.chatbot-window {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    height: 600px;
    background: linear-gradient(135deg, #5de0e6 0%, #004aad 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    visibility: hidden;
    transition: all 0.3s ease;
}

.chatbot-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Header du chatbot */
.chatbot-header {
    background: rgb(239, 239, 239);
    color: black;
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-title img {
    width: 50px;
    height: auto;
}

.chatbot-title div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bot-name {
    font-weight: 400;
    font-size: 14px;
}

/* Voyant vert */
.bot-status-indicator {
width: 8px;
    height: 8px;
    left: 57px;
    top: 45px;
    position: absolute;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.chatbot-close {
    background: rgb(255 0 1);
    border: none;
    color: rgb(255 0 1);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chatbot-close:hover {
}

/* Zone des messages */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* Messages */
.bot-message, .user-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

.user-message {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.bot-message {
    justify-content: flex-start;
}

.message-avatar img {
    width: 30px;
    height: auto;
    border-radius: 50%;
}

.user-message .message-avatar {
    color: black;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    position: relative;
}

.user-message .message-avatar::after {
    position: relative;
    font-size: 12px;
    margin-right: 1rem;
}

.message-content {
    max-width: 70%;
}

.message-text {
    background: white;
    padding: 12px 16px;
    border-radius: 15px 15px 15px 5px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message .message-text {
    background: white;
    color: #333;
    border-radius: 15px 15px 5px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Suggestions */
.chatbot-suggestions {
    padding: 15px 20px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: transparent;
    border-top: none;
}

.suggestion-btn {
    background: white;
    border: 1px solid #e9ecef;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.suggestion-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-color: transparent;
    transform: translateY(-1px);
}

/* Zone d'input */
.chatbot-input-container {
    background: #efefef;
    border-radius:10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chatbot-input {
    flex: 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    font-family:'DM Serif Display', serif;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

#chatbot-input::placeholder {
    color: #666;
}

#chatbot-input:focus {
    border-color: black;
}

#chatbot-send {
    border: none;
    width: 35px;
    right: 0;
    height: 35px;
    position: absolute !important;
    border-radius: 50%;
    color: #9e0303;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive et Fix pour le clavier mobile */
@media (max-width: 768px) {
    .chatbot-notification {
        display: flex;
    }
    
    .chatbot-icon {
    position: fixed;
    bottom: 45px;
    left: 5px;
    }
    
    .chatbot-greeting {
        display: none !important;
    }
    
    .chatbot-window {
        bottom: 20px;
        z-index: 9999999999999999999999;
        width: 90%;
        height:50vh;
        left: 15px;
        right: 15px;
        display: flex;
        justify-content: center;
        left: 0;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%) !important;
    }
    
    /* Quand l'input est focusé, ajuster la position */
    .chatbot-window:has(#chatbot-input:focus) {
        bottom: 10px;
        height: calc(50vh);
    }
    
    /* Alternative si :has() n'est pas supporté */
    .chatbot-window.keyboard-open {
        bottom: 10px;
        height: calc(50vh);
        transition: all 0.3s ease;
    }
    
    .chatbot-greeting {
        max-width: 150px;
        font-size: 13px;
        left: 85px;
    }
    
    .message-content {
        max-width: 80%;
    }
    
    .suggestion-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .chatbot-messages {
        padding: 15px;
    }
    
    .chatbot-input-container {
    }
}

/* Pour les très petits écrans - seulement les différences */
@media (max-width: 480px) {
    .chatbot-icon {
        width: 100px;
        height: auto;
   bottom: 55px;
        left: 5px;
    }
    
    .chatbot-icon img {
        width: 100px;
        height: auto;
    }
    
    .chatbot-window {
        height: calc(98vh);
    }
    
    .chatbot-window:has(#chatbot-input:focus),
    .chatbot-window.keyboard-open {
        bottom: 5px;
        height: calc(98vh - 180px);
    }
    
    .chatbot-greeting {
        left: 70px;
        max-width: 130px;
    }
}

/* admin content */
