@charset "UTF-8";

/* ===================================== 
        DARK MODE :
 ===================================== */


body.dark-mode {
	--c1: #2e2e2b;
 /* couleur de fond */
	--c2: #e5e5e2;
 /* couleur du texte */
	--c3: #ba5b38;
 /* accentuation */
	--c4: #21211c;
 /* fond clair, des versets par exemple */
	--c5: #3e3d3c;
 /* gris de bordure */
	--c6: #21201b;
 /* beige 1 */
	--c7: #1b1914;
 /* beige 2 */
	--c8: #242424;
 /* sombre */
	--c9: rgba(0 0 0 / 70%);
 /* noir transparent */
	--c10: #999;
	--c11: rgb(46 46 43 / 70%);
 /* versets en arabe */
	--c12: #3fa481;
}

/* ===================================== 
        STYLES :
 ===================================== */

:root {
	--c1: #f2f2eb;
 /* couleur de fond */
	--c2: #3d3929;
 /* couleur du texte */
	--c3: #ba5b38;
 /* accentuation */
	--c4: #f6f6f4;
 /* fond clair, des versets par exemple */
	--c5: #e2e1dd;
 /* gris de bordure */
	--c6: #e7e5d7;
 /* beige 1 */
	--c7: #ded8c4;
 /* beige 2 */
	--c8: #ffffff;
 /* blanc */
	--c9: rgba(255 255 255 / 70%);
 /* noir transparent */
	--c10: #999;
	--c11: rgb(242 242 235 / 70%);
 /* versets en arabe */
	--c12: #137d58;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 65px;
 /* Décalage de 65px depuis le haut de la page */
	;
}

@font-face {
	font-family: 'SB';
    src: url("/fonts/StyreneB-Regular-Web.woff2") format("woff2"),url("/fonts/StyreneB-Regular-Web.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}

@font-face {
	font-family: 'SB';
    src: url("/fonts/StyreneB-RegularItalic-Web.woff2") format("woff2"),url("/fonts/StyreneB-RegularItalic-Web.woff") format("woff");
    font-weight: 400;
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
}

@font-face {
	font-family: 'SB';
    src: url("/fonts/StyreneB-Medium-Web.woff2") format("woff2"),url("/fonts/StyreneB-Medium-Web.woff") format("woff");
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}

@font-face {
	font-family: 'OH';
    src: url("/fonts/original-hafs.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}

.ar {
    font-family: 'OH';
    font-style: normal;
    line-height: 1;
}

button, textarea, select, input {
	font-family: 'SB', system-ui, sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	padding: 80px 0 0 0;
	margin: 0;
	background: var(--c1);
	font-family: 'SB', system-ui, sans-serif;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: var(--c2);
	font-size: 16px;
}

p {
	margin: 0 0 10px 0;
}

a, button {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
}

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

p a {
	text-decoration: underline;
	color: var(--c2);
}

p a:hover {
	text-decoration: none;
}

h1, h2, h3, h4 {
	margin: 0px 0 15px 0;
	padding: 0;
	font-family: 'SB', system-ui, sans-serif;
}

h3 {
	font-size: 18px;
	margin-bottom: 10px;
	margin-top: 20px;
}

.bloc-h1 {
	margin-bottom: 40px;
	padding: 22px 20px 17px 20px;
	border: 1px solid var(--c5);
	box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px;
	border-radius: 13px;
	text-align: center;
}

.bloc-h1 h1 {
	/* line-height: 1; */
}

h1.h1-1 .l-s-2 {
	display: block;
	font-weight: normal;
	font-size: 13px;
	text-transform: uppercase;
	margin-bottom: 5px;
}

h1.h1-1 .l-s {
	display: block;
	font-size: 23px;
	margin-bottom: 0px;
}

h1.h1-1 .l-p {
	font-size: 19px;
	color: var(--c3);
	font-style: italic;
	font-family: georgia;
	font-weight: normal;
}

.choix-type {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.choix-type li {
    display: inline-block;
    margin: 0 2px;
}

.choix-type span.actif {
    display: block;
    height: 40px;
    font-weight: bold;
    padding: 8px 4px;
    vertical-align: top;
    color: var(--c10);
    /* background: linear-gradient(to bottom, var(--c6) 60%, var(--c7) 80%); */
    border-radius: 13px;
    /* border: 1px solid transparent; */
    /* box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px; */
}

.choix-type a {
    display: block;
    height: 40px;
    font-weight: bold;
    padding: 7px 10px;
    background-color: var(--c4);
    border: 1px solid var(--c5);
    border-radius: 13px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px;
    transition: .2s;
    vertical-align: top;
}

.choix-type a:hover {
    background: var(--c8);
    border-color: var(--c8);
    box-shadow: none;
}

.h1-p {
    text-align: center;
    font-size: 30px;
    margin-bottom: 15px;
    margin-top: 5px;
    letter-spacing: -1px;
}

h2 {
	font-size: 17px;
	margin-bottom: 10px;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--c5);
	margin-top: 0px;
}

.h2-1 {
    /* text-transform: uppercase; */
    font-size: 15px;
    padding: 0 0 5px 0;
    border-bottom: 1px solid var(--c5);
    color: var(--c10);
}

.sidebar {
	position: fixed;
	top: 0;
	left: -300px;
	width: 300px;
	padding: 0 20px;
	height: 100%;
	background-color: var(--c1);
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.3), inset -2px 0 4px var(--c8);
	transition: left 0.3s ease;
	z-index: 1000;
	overflow-y: auto;
}

.header .container {
	max-width: 1000px;
	position: relative;
	padding: 0 70px;
}

.sidebar.open {
	left: 0;
}

.sidebar-content {
}

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

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgb(0 0 0 / 20%);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
	z-index: 999;
}

.overlay.open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease;
}

.container {
	width: 100%;
	max-width: 800px;
	padding: 0 20px;
	margin: 0 auto;
}

.header {
	height: 60px;
	background: var(--c11);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 0 20px;
	margin-bottom: 15px;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10;
	text-align: center;
	box-shadow: 0 2px 20px rgba(0 0 0 / 5%), inset 0 -2px 2px rgba(255 255 255 / 10%);
}

.header .menu {
	position: absolute;
	left: 0;
	display: inline-block;
	height: 40px;
	margin: 10px 0;
	width: 40px;
	font-weight: bold;
	padding: 11px 9px;
	background-color: var(--c4);
	border: 1px solid var(--c5);
	border-radius: 13px;
	float: left;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px;
	transition: .2s;
}

.header .menu:hover {
	background: var(--c8);
	border-color: var(--c8);
	box-shadow: none;
	transform: scale(0.9);
}

.header .menu span {
	display: block;
	height: 1px;
	background: var(--c3);
	width: 100%;
	border-radius: 5px;
}

.header .menu span:nth-child(1) {
	margin-bottom: 6px;
	width: 80%;
}

.header .menu span:nth-child(2) {
	margin-bottom: 6px;
}

.header .menu span:nth-child(3) {
	width: 90%;
}

.a-logo {
	display: inline-block;
	vertical-align: top;
	margin: 10px 0 0 0;
	color: var(--c2);
	font-weight: bold;
	line-height: 36px;
	font-size: 19px;
	/* float: left; */
	height: 40px;
}

.a-logo span {
	font-weight: normal;
	font-size: 16px;
}

.a-logo img {
	height: 30px;
	display: inline-block;
	vertical-align: top;
	margin: 5px 4px 0 0;
}

.a-logo:hover {
	color: var(--c3);
}

.basmalah {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 25px;
    font-style: italic;
    font-size: 14px;
    color: var(--c2);
}

.basmalah .ar {
    display: block;
    font-family: 'OH';
    font-size: 20px;
    font-style: normal;
    margin-bottom: 10px;
}

.verset {
	padding: 15px;
	border-radius: 13px;
	position: relative;
	margin-bottom: 5px;
}

.verset:nth-child(odd) {
	background: linear-gradient(to bottom, var(--c6) 60%, var(--c7) 80%);
	box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px;
}

.verset:nth-child(even) {
	background-color: var(--c4);
	border: 1px solid var(--c5);
}

.verset .texte-arabe {
	display: none;
	text-align: right;
	direction: rtl;
	font-family: 'OH';
	font-size: 28px;
	color: var(--c12);
}

.verset .ref {
	float: left;
	font-weight: bold;
	margin-right: 6px;
}

.verset .ref .num-sourate {
	display: inline-block;
	vertical-align: top;
	margin-right: 5px;
	color: rgba(255, 255, 255, 40%);
}

.verset .ref .num-verset {
}

.verset .texte {
	/* margin-bottom: 0; */
}

.verset .texte sup {
	opacity: 0.7;
	font-size: 11px;
	line-height: 1;
	margin-left: 3px;
}

.verset .note {
	margin-bottom: 0;
	font-size: 14px;
	margin-top: 15px;
	padding-left: 30px;
	opacity: 0.7;
	margin-bottom: 15px;
}

.verset .note sup {
	font-size: 12px;
	line-height: 1;
	display: inline-block;
	border-radius: 3px;
	font-size: 11px;
	color: var(--c2);
}

.zone-outils {
	margin-top: 15px;
}

.zone-outils .copy-link {
	font-size: 15px;
	display: block;
	color: var(--c3);
	line-height: 36px;
	height: 40px;
	padding: 0 11px;
	border-radius: 13px;
	border: 1px solid var(--c5);
	box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px;
	text-align: center;
}

.zone-outils .copy-link::before {
	content: 'Copier le texte du verset';
}

.zone-outils .copy-link:hover {
	background: var(--c8);
	border-color: var(--c8);
	box-shadow: none;
}

.zone-outils .copy-link.is-clicked {
	color: var(--c3);
	background: var(--c3);
	color: var(--c1);
}

.zone-outils .copy-link.is-clicked:before {
	content: 'C\'est copié !';
	color: #fff;
}

.tab-container {
	width: 100%;
	margin: 0 auto;
}

.tabs {
	display: flex;
	justify-content: space-between;
	margin-bottom: 15px;
	border-bottom: 1px solid var(--c5);
  /* width: 280px; */
	;
}

.tab-button {
	background: no-repeat;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 6px 20px 9px 20px;
	height: 36px;
	transition: background-color 0.3s ease;
	width: auto;
	border-radius: 13px;
	/* font-weight: bold; */
	color: #bb5b37;
	background: var(--c4);
	font-size: 15px;
	border: 1px solid var(--c5);
	box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px;
	transition: background-color .2s, box-shadow .2s;
}

.tab-button:hover {
	background-color: var(--c8);
	border-color: var(--c8);
	box-shadow: none;
}

.tab-button.active {
	background-color: var(--c1);
	color: var(--c2);
	font-weight: bold;
	padding: 10px 20px;
	height: 41px;
	border: 1px solid var(--c5);
	position: relative;
	bottom: -1px;
	border-bottom: 1px solid var(--c1);
	border-radius: 5px 5px 0 0;
	box-shadow: none;
}

.tab-content {
  /* background-color: #f1f1f1; */
  /* padding: 20px; */
	;
}

.tab-pane {
	display: none;
}

.tab-pane.active {
	display: block;
}

.a-sb {
	display: block;
	border-radius: 13px;
	padding: 8px 15px;
	margin-bottom: 2px;
	background-color: var(--c4);
	border: 1px solid var(--c5);
	box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px;
	font-size: 15px;
	position: relative;
	transition:.2s;
}

.a-sb:hover {
	background: var(--c8);
	border-color: var(--c8);
	box-shadow:none;
}

.a-sb .num-sourate {
    /* font-weight: bold; */
	margin-right: 5px;
	color: var(--c2);
}

.a-sb .nom-ar {
	color: var(--c2);
	font-weight: bold;
}

.a-sb .nom-fr {
	display: block;
	/* font-weight: bold; */
	font-size: 16px;
	font-family: georgia;
	margin-top: 3px;
	font-style: italic;
	margin-bottom: 1px;
}

.a-sb .nb-versets {
    color: var(--c10);
    font-size: 13px;
}

.a-sb .arrow {
    position: absolute;
    right: 10px;
    top: 13px;
    font-size: 30px;
    color: var(--c5);
}

.a-sb:hover .arrow {
    color: var(--c3);
}

#darkModeToggle {
	position: absolute;
	right: 0;
	display: inline-block;
	height: 40px;
	margin: 10px 0;
	font-weight: bold;
	padding: 9px 10px 12px;
	background-color: var(--c4);
	border: 1px solid var(--c5);
	border-radius: 13px;
	vertical-align: top;
	float: right;
	color: var(--c10);
	cursor: pointer;
	font-size: 14px;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px;
	transition: .2s;
}

#darkModeToggle img {
	width: 20px;
}

#darkModeToggle:hover {
	background: var(--c8);
	border-color: var(--c8);
	box-shadow: none;
	transform: scale(0.9);
}

#presentation {
	max-height: 260px;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	padding: 0px 0px 60px 0px;
	margin-bottom: 30px;
	position: relative;
	padding: 0 0 50px 0;
	/* font-size: 15px; */
	/* text-align: justify; */
	border-radius: 13px;
}

#presentation.etendu {
	max-height: fit-content;
 /* Une hauteur suffisamment grande pour contenir tout le texte */
	;
}

#bouton_presentation {
	position: absolute;
	bottom: 0px;
	left: 0;
	width: 100%;
	height: 40px;
	padding: 8px 10px 12px;
	background-color: var(--c4);
	border: 1px solid var(--c5);
	border-radius: 13px;
	color: var(--c3);
	cursor: pointer;
	font-size: 15px;
	box-shadow: 0 -1px 21px -7px rgba(0 0 0 / 14%);
	transition: .2s;
}

#bouton_presentation:hover {
	background: var(--c8);
	border-color: var(--c8);
}

.toggle-outils {
	font-size: 12px;
	display: inline-block;
	color: var(--c10);
	line-height: 26px;
	height: 30px;
	padding: 0 9px 4px 9px;
	border-radius: 100%;
	border: 1px solid var(--c5);
	box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px;
	font-size: 28px;
	background: var(--c4);
	height: 40px;
	width: 40px;
	line-height: 25px;
	font-family: system-ui;
	text-align: center;
	font-weight: 100;
}

.ajout-bookmark {
	display: inline-block;
	padding: 11px 9px;
	border-radius: 100%;
	border: 1px solid var(--c5);
	box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px;
	height: 40px;
	width: 40px;
	text-align: center;
	vertical-align: top;
	background: var(--c4);
}

.ajout-bookmark:hover, .toggle-outils:hover {
	background: var(--c8);
	border-color: var(--c8);
	box-shadow: none;
}

.bloc-bookmark-vide {
	padding: 15px;
	border-radius: 13px;
	font-size: 14px;
	background: var(--c5);
	margin: 15px 0 25px 0;
	text-align: center;
}

.bloc-bookmark-vide .l-1 {
	font-weight: bold;
	display: block;
	margin-bottom: 4px;
	font-size: 16px;
	margin-top: 10px;
}

.btn {
	display: inline-block;
	height: 40px;
	padding: 0 15px;
	border-radius: 13px;
	font-weight: bold;
	line-height: 38px;
	box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 9px;
	transition: .2s;
}

.btn:hover {
	/* opacity: 0.9; */
	border-radius: 3px;
	box-shadow: none;
}

.btn-1 {
	background: var(--c3);
	color: #fff;
}

.checkbox-1 {
	display: block;
	width: fit-content;
	margin: 40px auto 20px auto;
}

.checkbox-1 .intitule {
	display: inline-block;
	vertical-align: top;
	margin-left: 10px;
	text-align: left;
	line-height: 1.1;
	margin-top: 4px;
	font-size: 15px;
}

.switch {
	display: inline-block;
	position: relative;
	width: 60px;
	height: 40px;
	cursor: pointer;
	overflow: hidden;
	transition:.2s;
}

.switch:hover {
    transform:scale(0.95);
}

.switch input {
	position: absolute;
	top: -30px;
	top: -30px;
	width: 0;
	height: 0;
}

.switch input + span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--c5);
	border-radius: 20px;
	box-shadow: inset rgba(0, 0, 0, .1) 2px 2px 3px;
}

.switch input + span:before {
	content: "";
	display: inline-block;
	position: absolute;
	top: 50%;
	left: 4px;
	width: 32px;
	height: 32px;
	background: #fff;
	border-radius: 50%;
	transform: translateY(-50%);
	transition: all .5s;
	box-shadow: rgba(0, 0, 0, .1) 2px 2px 3px;
}

.switch input:checked + span {
	background: var(--c3);
}

.switch input:checked + span:before {
	left: 24px;
}

footer {
    text-align: center;
    margin-top: 50px;
    font-size: 15px;
    color: var(--c10);
}

footer .container {
    max-width: 1000px;
    position: relative;
    padding: 50px 70px 30px 70px;
    border-top: 3px solid var(--c5);
}

footer img {
    display: block;
    margin: 0 auto 15px auto;
}

footer p {
    margin-bottom: 5px;
}

footer a {
    color: var(--c10);
}

.mea {
    display: inline;
    border-bottom: 3px solid var(--c3);
}

.search-sb {
    height: 40px;
    margin-bottom: 25px;
}

.search-sb .champ {
    display: block;
    float: left;
    height: 40px;
    background: var(--c4);
    border: 1px solid var(--c5);
    border-radius: 13px;
    padding: 0 18px;
    box-shadow: inset 2px 2px 10px rgba(0 0 0 / 10%);
    width: calc(100% - 45px);
    margin-right: 5px;
    font-size: 14px;
}

.search-sb .champ:focus {
    outline-color: var(--c3);
    box-shadow: inset 1px 1px 5px rgba(0 0 0 / 10%);
}

.search-sb .bouton {
    display: block;
    float: left;
    width: 40px;
    height: 40px;
    background: var(--c4) url(/images/picto-recherche.webp) center center no-repeat;
    background-size: 16px;
    border: none;
    border-radius: 13px;
    cursor: pointer;
    border: 1px solid var(--c5);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 9px;
    transition: .2s;
}

.search-sb .bouton:hover {
	background-color: var(--c8);
	border-color: var(--c8);
	box-shadow: none;
}

.sourates-wrapper {
    display: flex;
    justify-content: space-between;
}

.column {
    flex-basis: 30%;
}

.rang {
    font-weight: bold;
    margin: 15px;
    position: relative;
    display: flow;
}

.img-une {
    float: left;
    margin: 0 15px 9px 0;
    border-radius: 13px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 9px;
}

.bloc-choix {
    text-align: center;
    margin-bottom: 50px;
}

.bloc-choix .l-1 {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--c10);
}

.a-2 {
    font-size: 14px;
    color: var(--c10);
    display: block;
    margin: 0 auto 20px auto;
    text-decoration: none;
    width: fit-content;
}

.a-2:hover {
    color: var(--c2);
}

.img-ayah {
    width: 100%;
    max-width: 620px;
}

/* ===================================== 
        SUR MOBILE :
 ===================================== */

@media (max-width:800px) {
	body {
		font-size: 15px;
	}
	#presentation {
    	max-height: 170px;
    }
    .sourates-wrapper {
        flex-direction: column;
    }
    .column {
        flex-basis: auto;
        width: 100%;
    }
    h1.h1-1 .l-s {
        font-size: 19px;
    }
}

