/* === Réinitialisation totale === */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html, body {
    margin-top: 0;
    padding: 0;
	height: 100%;
    overflow-x: hidden;
    width: 100%;
	overscroll-behavior-y: none; /* ← Désactive le pull-to-refresh */
	font-family: 'Amiri_b', serif;
	
}

@-webkit-keyframes backgroundScroll {
from {background-position: 0 0;}
to {background-position: -200px 0;}
}
 
@keyframes backgroundScroll {
from {background-position: 0 0;}
to {background-position: -200px 0;}
}
#open-menu-btn {
	position: fixed;
    top: 30px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);

}
#floating-menu {
	display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 10001;
    direction: rtl;

    overflow: hidden;
}
#close-menu-btn{
	background: none; 
	border: none; 
	font-size: 30px; 
	cursor: pointer; 
	color: #666;
}
#close-menu-btn:hover{
	background-color: #f5f5f5;
	font-weight: bold;
	box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3);
}
.collapse-content {
    transition: max-height 0.3s ease;
    overflow: hidden;
}
#quran-ayah-module {
    direction: rtl;
    font-family: 'Amiri_b', serif;
    font-size: 16px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto; /* Centre le bloc */
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
}

/* Conteneur des deux champs : centré et largeur fixe */
#quran-ayah-module .qas-controls-wrapper {
    /*width: 90%;
    display: flex;
    justify-content: center;
    */
	width: 100%;
    max-width: 600px; /* ← Ajuste cette valeur si besoin */
    margin: 0 auto 5px auto;
}

#quran-ayah-module .qas-controls {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
    max-width: 600px; 
    flex-wrap: nowrap;
	
}

/* Champ sourate */
#quran-ayah-module .qas-surah-container {
    position: relative;
    flex: 3;
    min-width: 180px;
}
.quran-soura-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}
#quran-ayah-module #qas-surah-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    direction: rtl;
    box-sizing: border-box;
	margin-left:-5px;
}

#quran-ayah-module #qas-surah-dropdown {
    /* Scrollbar */
    max-height: 250px; /* Hauteur maximale */
    overflow-y: auto;  /* Barre de défilement si nécessaire */
    border-radius: 12px
    /* Style visuel */
    border: 1px solid #ccc;
    border-top: none;
    background: white;
    
    display: none;
	
}

/* Style des items */
#quran-ayah-module #qas-surah-dropdown .qas-surah-item {
    padding: 10px 12px;
    cursor: pointer;
    text-align: right;
    direction: rtl;
    color: #000;
    /*font-family: 'Amiri', serif;*/
    font-size: 16px;
	border-bottom: 1px solid #eee; /* ← Ligne de séparation */
}

#quran-ayah-module #qas-surah-dropdown .qas-surah-item:hover {
    background-color: #f5f5f5;
	font-weight: bold;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Champ verset */
#quran-ayah-module .qas-ayah-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 100px;
	width: 100%;
	margin-left: auto !important;
    margin-right: auto !important;
}


#quran-ayah-module #qas-num-aya {
    font-family: 'arial', serif;
	width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    direction: rtl;
    box-sizing: border-box;
}

/* Textarea : même largeur que le bloc des champs */
#quran-ayah-module #qas-text-aya {
    /*background-color: rgba(200, 200, 200, 0.9) !important;*/
	width: 100%;
    max-width: 600px;
    /*min-height: 60px;  Réduit car il va s'ajuster */
    padding: 10px;
    font-size: 18px;
    line-height: 1.6;
	min-height:20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    direction: rtl;
    resize: none; /* Désactive le redimensionnement manuel */
    box-sizing: border-box;
    margin: 0 auto 5px auto;
    display: block;


}
#rech_type {
	width:100%;
}
#rech_type label {
	color: white;
}
#rech_type input[type=checkbox] {
	margin:5px 5px;
}
.quran_soura{
	background-color: rgba(200, 200, 200, 0.4) !important;
    padding: 5px 5px;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
	margin:0px 20px;
	width:100%;
	margin-left: auto !important;
    margin-right: auto !important;
	text-align: center;
	
	z-index: 10000;

}

.quran_soura:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.quran-module-bg {
    background-color: rgba(220, 220, 220, 0.4) !important;
    padding: 5px 5px;
    border-radius: 12px !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(6px);  
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
	margin:0px 20px;
	width:90%;
	margin-left: auto !important;
    margin-right: auto !important;
	text-align: center;
	margin-bottom:10px;

}
.quran-module-bg:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#resultats {
         margin-top: 10px;
		 border: 1px solid #ddd;
         max-height: 200px;
         overflow-y: auto;
         width: 200px;
		 max-width: 50% !important;
         min-width: 50% !important;
		 background-color: #f0f8ff;
		 margin: 5px auto;
        }
.item-resultat {
            padding: 8px;
            cursor: pointer;
            border-bottom: 1px solid #eee;
            transition: background-color 0.2s;
			color: blue;
        }
        .item-resultat:hover {
            background-color: #00666c;
            color: #ddd;
        }
        .item-resultat:last-child {
            border-bottom: none;
        }
        .options {
            margin: 10px 0;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        .options label {
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
        }
        #recherche {
            /*padding: 10px 12px;
			margin: 5px auto;	*/
			width:80%;
			font-size: 16px;
			border: 1px solid #ccc;
			border-radius: 6px;
			direction: rtl;
			box-sizing: border-box;
			
			margin-bottom: 10px;
			margin-top: 5px;
			display: block;
			line-height:0.5;
			margin-left: auto !important;
			margin-right: auto !important;
			
        }
        #recherche:focus {
            border-color: #4a90e2;
            outline: none;
        }
        .highlight {
            background-color: #ffff00;
            font-weight: bold;
			color:black;
        }
.error {
			color: red;
			padding: 8px;
		}

.quran-collapsible {
    direction: rtl;
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
	margin-left: auto !important;
	margin-right: auto !important;
}

.quran-collapse-header {
    background: #f8f9fa;
    padding: 14px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    
    align-items: center;
    font-weight: bold;
    color: #222;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	font-family: 'ae_AlBattar', 'Book Antiqua', sans-serif;
	font-size: 20px;
	justify-content: center;
}

.quran-collapse-header:hover {
    background: #dee2e6;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.arrow {
    transition: transform 0.25s ease;
    /* Par défaut : ▼ */
}

/* Quand OUVERT : flèche vers le haut (▲) */
.quran-collapsible.open .arrow {
    transform: rotate(180deg); /* ▼ devient ▲ */
}

.quran-collapse-content {
    display: none;
    padding: 20px 0 0 0;
}

/* Quand OUVERT : afficher le contenu */
.quran-collapsible.open .quran-collapse-content {
    display: block;
}
		
#kalimat {
	margin-bottom : 20px;
}
.home {
	position: fixed;
	background: url("../images/coran_bg.png") center center no-repeat;
    background-size: cover;
    min-height: 100dvh; /* ← Très important */
    width: 100%;
    color: #fff !important;
    padding: 0; /* Pas de padding si tu veux vraiment 100% */
    box-sizing: border-box;
	min-height: 100dvh;
 
	/*

    -webkit-animation: backgroundScroll 35s linear infinite;
    animation: backgroundScroll 35s linear infinite;*/
}

.home h1{
	font-family: 'ae_AlBattar', 'Book Antiqua', sans-serif; 
	font-size:30px;
	text-align:center;
}
.home h2{
	font-family: 'ae_AlBattar', 'Book Antiqua', sans-serif; 
	font-size:15px;
	margin-bottom:10px;
}
.home button{
	margin-top:10px;
}
.home .titre_acc {
	margin-bottom:20px;
	width:100%;
	text-align:center;
}
.has-search .form-control {
    padding-left: 2.375rem;
}

.has-search .form-control-feedback {
    position: absolute;
    z-index: 2;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.375rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
}
/* === Bouton de recherche personnalisé === */
.bouton {
    background: linear-gradient(135deg, #8e89e7, #592aa9); /* Violet doux (inspiré de Tailwind indigo/purple) */
    color: white;
    border: none;
    padding: 10px 20px;
    font-family: 'Amiri', serif;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: rtl;
}

.bouton:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9); /* Plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.bouton:active {
    transform: translateY(0);
}

.bouton i {
    font-size: 18px;
}

/* Version mobile : un peu plus grand si besoin */
@media (max-width: 576px) {
    .bouton {
        font-size: 17px;
        padding: 12px 18px;
    }
}
.content_buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    max-width: 550px;
    padding-top: 30px;
	color:#fff;
}
.content_button {
    color : #fff;
	background-color: hsla(0, 10%, 100%, .1);
    border: 2px solid #fff;
    border-radius: 5px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, .2), inset 1px 1px 2px rgba(0, 0, 0, .2);
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    height: 80px;
    padding-left: 20px;
    padding-right: 20px;
	padding-top: 20px;
	margin:auto;
    text-align: center;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, .2);
    transition-property: border-color, color, background-color, box-shadow;
    transition-duration: .25s;
    /*width: 250px;*/
}
.content_button:hover {
  background-color: #fff;
  color : #000;
  text-decoration:none;
}

.bg_moshaf_2 {
	height:0px;
}
.bg_moshaf {
	background:url('../images/moshaf_3.png'); 
	background-repeat: no-repeat;
	background-position: center;
	height:130px;
	border-radius: 10px;
	box-shadow: 0px 0px 5px #222;
	vertical-align:center;
	width:130px;
    border-radius: 15px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, .2), inset 1px 1px 2px rgba(0, 0, 0, .2);
}
.bg_moshaf:hover {
	border-radius: 10px;
	box-shadow:0 0 10px #FFF;
	cursor:pointer;
}
.bg_fahrasse {
	background: url('../images/cadre_fah.jpg') center no-repeat;
	background-size:130px 130px;
	height:130px;
	vertical-align:center;
	width:130px;
    border-radius: 10px;
    padding:45px 0 0 0;
	font-family: 'ae_AlBattar', 'Book Antiqua', sans-serif; 
	font-size:20px;
	color:#000;
}
.bg_fahrasse:hover {
	border-radius: 10px;
	box-shadow:0 0 10px #FFF;
	cursor:pointer;
}
.bg_fahrasse a {
	
	text-decoration:none;
}
.soura_fah {
    display: block;
    border-radius: 3px;
    margin-bottom: 5px;
    position: relative;
    /*text-align: center;*/
    border: 2px solid #ebebeb;
    box-shadow: 2px 2px 0 0 rgba(0,0,0,0.1), transparent 0 0 0, transparent 0 0 0;
	margin-bottom:6px;
	padding:5px 5px 5px 5px;
}
.image_surat {
    float: right;
    display: inline;
    height: 34px;
    width: 85px;
    margin-bottom: 6px;
}
.sourat-number {
    background: url("../images/numbers-1-114.png") no-repeat scroll 0 0 / 850px 408px rgba(0,0,0,0);
}
#souar_Modal h4{
	text-align:center;
	font-family: 'Droid Arabic Kufi', Verdana, Arial, Helvetica, sans-serif;
}
.soura_acc {
		
	visibility:hidden;
}
.home h2{
		
	visibility:hidden;
}

.banner_youtube {
	height: 200px;
	background : url('../images/youtube_ch.png') no-repeat;
	background-size: 100% 100% ;
	background-position: center;
	margin-top:5px;
	margin-bottom:5px;
	margin-left:5px;
	border: 1px solid #ebebeb;
	border-radius: 10px;
	opacity:0.7;
}
.banner_youtube:hover {
	box-shadow:0 0 15px #888;
	opacity:1.2;
}
h6 {
	color: #78bc6d;
	font-family: 'Droid Arabic Kufi', 'Book Antiqua', sans-serif; 
	font-size:14px;
	text-align:center;
}

@media only screen and (max-width:768px){
.keyboardInput{
  
}
.bout_ch {
	display:block;
}
.bouton {
        font-size: 17px;
        padding: 12px 18px;
    }
#maqal h5 {
	font-size:20px;
	color:#78bc6d;
	padding: 10px;
}
.content_button {
	font-size: 14px;
    padding-bottom: 20px;
    height: 100%;
}
.bg_moshaf_2 {
	height:70px;
	
}
.quran_moshaf{
    margin-left: auto !important;
    margin-right: auto !important;
    width: auto; /* ou width: fit-content */
    display: table; /* ou inline-block */
    text-align: center;
	margin-top:20px;
}
#rech_type label {
	color: white;
}
.soura_acc {
	visibility:visible;
}
 .home {
	background: url("../images/coran_bg_m.png") center center ;
    width: 100%;
    padding: 0px 0;
    color: #fff !important;
    /*background-attachment: scroll;  ← Important 
	 background-attachment: fixed;*/
	text-align:center;
	min-height: 100dvh;
	background-size: cover;

   }
.home h2{
		
	visibility:visible;
}
.dropdown-menu {
  max-height: 200px; /* Adjust the height as needed */
  overflow-y: auto;
    /* Force le rendu matériel pour Chrome mobile */
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
  will-change: transform;
}
#open-menu-btn {
    top: 25px;
    right: 3px;
}

