@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ==========================================================
   VARIABLES GLOBALES
   ========================================================== */

:root {

    /* Palette principale */
    --color-primary: #163C71;
    --color-accent: #EF7D21;
	--verse-color: #3E5F8A;

    /* Header */
    --header-grey-top: #9b9b9b;
    --header-grey-bottom: #7f7f7f;

    /* Navigation */
    --nav-background: #f7f7f5;

    /* Texte */
    --text-dark: #2f2f2f;
    --text-light: #ffffff;

    /* Fond général */
    --background-page: #ffffff;
	--background-section: #f6f6f4;

    /* Ombres */
    --shadow-main: 0 10px 25px rgba(0,0,0,.20);

    /* Arrondis */
    --radius-main: 12px;

}

/*==========================================================
  2. STYLES GÉNÉRAUX
==========================================================*/

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
	min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
	width:90%;
    margin:auto;
    margin-top:60px;
	
    flex: 1;
}

main > h1, main:not(.admin-page) > section {
	text-align: center;
}

main > h3 {
	color: var(--color-accent);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

li {
    margin: 10px 0;
}



/*==========================================================
  3. HEADER
==========================================================*/

body > header {
    background: linear-gradient(to bottom, var(--header-grey-top), var(--header-grey-bottom));
    height: 180px;
    display: grid;
	grid-template-columns: clamp(90px, 10vw, 170px) minmax(0, 1fr) clamp(70px, 8vw, 170px);
    align-items: center;
    padding: 0 20px;
	box-sizing: border-box;
}

body > header > h1 {
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: clamp(1.9rem, 6vw, 7.2rem);
    line-height: 1;
    white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
	text-wrap: balance;
    align-self: center;
	min-width: 0;
}

header a {
    color: white;
    z-index: 12;
}

header>ul {
    right: 0;
    text-decoration:none ;
}

header>ul li {
    margin: 10px;
    font-weight: 600;
    display: inline-block;
    list-style: none;
    transition: background-color 0.5s ease-in-out;
}

header>ul li:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    margin: 0;
}

.header-logo img {
	width: clamp(90px, 9vw, 160px);
	height: auto;
    display: block;
}

.nav-toggler {
	justify-self: end;
    align-self: center;
    position: relative;
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.nav-toggler span {
    background: #fff;
}



.nav-toggler.active .l1 {
    transform: translateY(0px) rotate(135deg);
}

.nav-toggler.active .l2 {
    opacity: 0;
}

.nav-toggler.active .l3 {
    transform: translateY(0px) rotate(-135deg);
}

.line {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background: #f1f1f1;
    transition: transform 0.3s ease-in-out,
    opacity 0.1s ease-out;
}

.l1 {
    transform: translateY(-10px);
}

.l3 {
    transform: translateY(+10px);
}

/*==========================================================
  4. NAVIGATION
==========================================================*/

nav {
    position: absolute;
    width: 100%;
	min-height: 25vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction:  column;
    background: grey;
    border-bottom: 1px solid rgb(207,207,207);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.73, 0.11, 0.67, 0.84);
    z-index: 8;
}

nav a {
    font-family: "Montserrat", sans-serif;
    color: #f1f1f1;
    font-size: 20px;
    display: block;
    margin: 10px 0;
    text-decoration:  none;
}

nav.active {
    transform:  translate(0);
}

.nav-bar{
	display:flex;
	justify-content:center;
	align-items:center;
	gap:40px;
	height:46px;
	background:#f6f6f4;
	border-top:1px solid rgba(255,255,255,.12);
	border-bottom:1px solid #dcdcdc;
	box-shadow: inset 0 1px rgba(255,255,255,.08);
}

.nav-bar a {
    position: relative;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.35rem 0;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-bar a:hover {
    color: var(--color-accent);
}

.nav-bar a:focus-visible {
	outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.nav-bar a.active {
	font-weight: 600;
}

.nav-bar a::after {
	content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.25s ease, left 0.25s ease;
}

.nav-bar a:hover::after, .nav-bar a.active::after {
    left: 0;
    width: 100%;
}

/*==========================================================
  5. CONTENU PRINCIPAL
==========================================================*/

.versets {
    color: var(--verse-color);
    font-style: italic;
}

main > .versets {
    display: flex;
    justify-content:center;
    margin-bottom: 100px;
	font-size: clamp(0.92rem, 1.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.6;
}

.titre {
    margin-bottom: 50px;
}

.bienvenue {
    display: flex;
    justify-content: center;
	gap: 150px;
    margin-bottom: 100px;
}

.bienvenue div {
	display: flex;
    flex-direction: column;
}

.bienvenue > div > div {
    margin: 5px;
}

.bienvenue img {
    width: 300px;
    align-self: center;
    border-radius: 5px;
}

.bienvenue h5, .bienvenue p {
    margin: 5px 0;
}

.separator {
    height: 3px;
    background-color: grey;
    width: 100%;
    margin: 20px 0;
}

.separator-messages {
    width: 60%;
    height: 1px;
    margin: 4rem auto;
    background: rgba(22,60,113,.22);
}

.mini-separator {
    height: 3px;
    background-color: grey;
    width: 65%;
    margin: 20px 0;
    margin-bottom: 50px;
}

.Informations {
    margin-bottom: 100px;
}

.BlockInfo {
    display: flex;
    flex-direction: row;
    justify-content:center;
    margin-bottom: 100px;
    margin-top: 100px;
    margin-left: 80px;
}

.BlockInfo img {
    width:40% ;
    align-self: center;
    border-radius: 5px;
    margin-right: 20px;
    margin-left: 50px;
}

.TextePlan{
    display:inline-block;
    width: 90%;
    margin: auto;
    margin-left: 50px;
    margin-top: 80px;
}

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



.QSN2 {
    display:grid;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 80px;   
}

/*==========================================================
  5.1 PAGE MESSAGES
==========================================================*/

.page-messages {
	width: min(1100px, 92%);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.page-messages h2 {
    margin: 0 0 2rem;
	font-size: clamp(1.35rem, 2vw, 1.6rem);
    font-weight:400;
    letter-spacing:.02em;
    color: var(--color-primary);
    text-align: center;
}

.dernier-message {
    margin-bottom: 4rem;
}

.dernier-message .predication {
	display:flex;
    align-items:center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
	row-gap: .75rem;
}

.dernier-message .predication-header{
    flex: 1;
}

.dernier-message audio {
	flex:0 0 420px;
    width:420px;
    display:block;
}

.dernier-message, .messages-recents {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.messages-recents audio{
    display:block;
    width:100%;
    margin-top:1rem;
}

.messages-recents .predication {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.predication {
	padding: 2rem;
	background: #fff;
	border-radius: var(--radius-main);
	box-shadow: var(--shadow-main);
}

.predication-header {
    display: flex;
    align-items: center;
    gap:1.5rem;
}

.predication-meta {
    display: flex;
    flex-direction: column;
    justify-content:center;
    gap:.45rem;
}

.icone-message {
    width:90px;
    height:90px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#f7f7f5;
    border-radius:12px;

    flex-shrink:0;
}

.icone-message img{

    width:75px;
    height:auto;

    transform: translate(2px, -5px);
}

.versets {
    color: var(--color-primary);
    font-style: italic;
}

.predication p:not(.versets) {
    font-weight: 500;
}

.predication time {
    color: #777;
    font-size: .95rem;
}

.predication h3, .predication p, .predication time {
    margin: 0;
}

.grille-messages{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:2rem;
}

/*==========================================================
  5.2 SDP
==========================================================*/

.supprimer {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-main);
    padding: .75rem 1.5rem;
    font: inherit;
    cursor: pointer;
    transition: background .25s;
}

.supprimer:hover {
    background: var(--color-accent);
}


/*==========================================================
  5.3 Annonce
==========================================================*/

.annonce{
    display:flex;
    justify-content:center;
    align-items:center;

}

.BoutonSuppAnnonce, .BoutonSuppression {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-main);
    padding: .75rem 1.5rem;
    font: inherit;
    cursor: pointer;
    transition: background .25s;
}

.BoutonSuppAnnonce:hover, .BoutonSuppression:hover {
    background: var(--color-accent);
}

.validation-suppression {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}


.validation-suppression.active {
    display: flex;
}


.popup-suppression-contenu {
    position: relative;
    width: 500px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 30px;
    background-color: transparent;
    border: 3px solid #163C71;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}


.popup-suppression-contenu h2 {
    margin-top: 0;
}


.popup-suppression-contenu p {
    overflow-wrap: break-word;
}


.popup-fermer {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
}


.popup-boutons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}


.popup-boutons form {
    margin: 0;
}


.val-supp-bouton{

    width: 7vw;
    padding: 15px;
    margin: 15px;
    border-radius: 20px;
    outline: none;
    border: 0;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.5s;
    background-color: #163C71;
    color: #f6f6f4;
    font-size: 20px;

}

.ref-supp-bouton{

    width: 7vw;
    padding: 15px;
    margin: 15px;
    border-radius: 20px;
    outline: none;
    border: 0;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.5s;
    background-color: #f6f6f4;
    color: #163C71;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    font-size: 20px;

}

.val-supp-bouton:hover{

    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: #EF7D21;

}

.ref-supp-bouton:hover{

    color: #EF7D21;    

}


/*==========================================================
  6. FORMULAIRES
==========================================================*/

input:not(input[type="submit"]), select, textarea {
    border: none;
    border-bottom: 2px solid grey;
    resize: none;
    outline: none;
    font-family: "Montserrat";
    font-size: 20px;  
}

input[type="file"]::file-selector-button{

    background:#163C71;
    color:white;
    border:none;
	height: 36px;
    padding: 0 18px;
    border-radius:10px;
    cursor:pointer;
    margin-right:16px;
}

label {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 20px;
}

.form, .form div, .login {
	display:flex;
	flex-direction:column;
	gap:20px;
	align-items: center;
}

.form input {
	width: 300px;
	font-weight: 600;
	border-radius: 14px;
    border: none;
    padding: 10px;
    font-size: 20px;
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 0 5px rgba(0, 0, 0, .5);
}

.form input[type=submit] {
	background: var(--color-primary);
    color: white;
	width: 180px;
    cursor: pointer;
    transition: transform .5s ease-in-out;
	height:52px;
}
/*
.cases{
    display: grid;
	grid-template-columns: 150px 1fr;
	gap:20px;
    align-items: center; 
}*/
 
.envoyer{

    display: flex;
    justify-content: center;
	margin: 30px;
}
/*
.identifiant{

    margin: 50px;
    
}

.mdp{

    margin: 50px;
    
}

.form-top {
    display: flex;
    flex-direction: row;
    position: relative;
    justify-content: space-between;
}

.form-contact input, .form-contact select {
    background-color: white;
    border-radius: 20px;
    border: none;
    padding: 10px;
    font-weight: 600;
    font-size: 20px;
    color: black;
    font-family: "Montserrat";
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
	height:52px;
}

.form-contact select{
	color:#6f6f6f;
}

.form-contact select:required:invalid{
    color:#6f6f6f;
}

.form-contact select:valid{
    color:#000;
}

.form-contact input[type="file"]{
    height: auto;
    padding: 6px 10px;
}

.form-contact input[type=submit]{
	background:var(--color-primary);
    color:white;
	width:180px;
    height:50px;
	font-weight:600;
}

.form-contact input[type=submit]:hover{

    background:var(--color-accent);
}*/

::placeholder{
	color:#9b9b9b;
}

/*==========================================================
  7. FOOTER
==========================================================*/

footer {
    height: 160px;
    position: relative;
    background-color: grey;
}

footer h5 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

/*==========================================================
  8. ADMINISTRATION
==========================================================*/

.admin-page {
	width:min(1200px,90%);
    margin:4rem auto;
}

.admin-page h1{
    margin-bottom:50px;
	text-align: left;
}

.admin-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:40px;
	align-items:stretch;
}

.admin-form {
	display:flex;
	flex-direction:column;
	gap:30px;
}

.admin-section {
	display:flex;
    flex-direction:column;
	background: white;
	border-radius: 18px;
	box-shadow: var(--shadow-main);
	padding: 35px 30px;
}

.admin-section h2 {
	margin: -35px -30px 35px -30px;
	color: var(--color-primary);
	border-radius: 18px 18px 0 0;
	padding: 20px 0 20px 20px;
	background:rgba(22,60,113,.08);
}

.admin-section label{
	display:block;
    margin-top:30px;
	font-weight:600;
    margin-bottom:15px;
}

.admin-section label:first-of-type{
    margin-top:0;
}

.admin-actions{
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-top: 25px;
	
	align-items: center;
}

.admin-actions input{
	width: 180px;
}
/*
.admin-form input, .admin-form select {
    width: 100%;
	background-color: white;
    border-radius: 14px;
    border: none;
    padding: 10px;
    font-weight: 600;
    font-size: 20px;
    color: black;
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 0 5px rgba(0, 0, 0, .5);
    cursor: pointer;
    transition: transform .5s ease-in-out;
	height:52px;
}*/

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    box-sizing: border-box;
    background-color: white;
    border-radius: 14px;
    border: none;
    padding: 10px;
    font-weight: 600;
    font-size: 20px;
    color: black;
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 0 5px rgba(0, 0, 0, .5);
}

.admin-form input,
.admin-form select {
    cursor: pointer;
    transition: transform .5s ease-in-out;
    height: 52px;
}

.admin-form textarea {
    height: 260px;
    resize: vertical;
}

.admin-form select{
	color:#6f6f6f;
}

.admin-form select:required:invalid{
    color:#9b9b9b;;
}

.admin-form select:valid{
    color:#000;
}

.admin-form input[type="file"]{
    height: auto;
    padding: 6px 10px;
}

.admin-form input[type=submit]{
	background: var(--color-primary);
    color: white;
	width: 180px;
    height: 50px;
	font-weight: 600;
}

.admin-form input[type=submit]:hover{

    background:var(--color-accent);
}

.admin-form input[type=reset]{
    width: 180px;
	color: var(--color-primary);
}

.admin-form input[type=reset]:hover{

    color:var(--color-accent);
}

/*==========================================================
  8.1 ADMINISTRATION DES MESSAGES
==========================================================*/

.reference-row{
    display:grid;
    grid-template-columns:70px 1fr 1fr;
    column-gap:18px;
    align-items:center;
	margin-top:40px;
}

.reference-row span{
	font-weight:600;
	font-size:18px;
}

.reference-row input{
    width:100%;
}

/*==========================================================
  9. MEDIA QUERIES
==========================================================*/

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

    .BlockInfo {
    display: inline-block;
    margin-left: 0px;
    }

    .plan {
        width: 100%;
    }

    .BlockInfo img {
        width:40% ;
        align-self: center;
        border-radius: 5px;
        margin-right: 20px;
        margin-left: 50px;
    }

    .TextePlan{
        display:inline-block;
        width: 90%;
        align-self: center;
        margin: auto;  
    }

    .mini-separator {
        height: 3px;
        background-color: grey;
        width: 75%;
        margin: 20px 0;
        margin-bottom: 50px;
    }
}

@media screen and (max-width: 1060px) {
	
	.bienvenue {
    flex-direction: column;
}
    .dernier-message .predication {
        flex-direction: column;
        align-items: stretch;
    }

    .dernier-message audio {
        width: 100%;
        flex: none;
    }

    .grille-messages {
        grid-template-columns: 1fr;
    }
	
	.admin-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .admin-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .admin-actions input {
        width: 100%;
    }
	
	.nav-bar {
        display: none;
    }

    .nav-toggler {
		display: flex;
		width: 44px;
		height: 44px;
		justify-self: end;
		align-items: center;
		padding: 0;
		margin: 0;
	}
	
	nav {
	position: fixed;
	top: 0;
	left: 0;
    width: 100%;
	height: 100vh;
    min-height: auto;
    background: rgba(128, 128, 128, 0.95);
	}

	nav a {
    font-family: "Montserrat", sans-serif;
    color: #f1f1f1;
    font-size: 20px;
    display: block;
    margin: 10px 0;
    text-decoration:  none;
	}
}

@media screen and (max-width: 1060px) and (min-width: 601px) {

    body > header {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        grid-template-columns: clamp(72px, 10vw, 110px) minmax(0, 1fr) clamp(48px, 7vw, 64px);
        align-items: center;
        gap: clamp(10px, 2vw, 22px);
        padding: 0 clamp(12px, 2vw, 20px);
		box-sizing: border-box;
    }

    .nav-toggler {
        width: clamp(40px, 5vw, 48px);
        height: clamp(40px, 5vw, 48px);
        justify-self: end;
        align-self: center;
    }
/*
    body > header > h1 {
        margin: 0;
		min-width: 0;
		max-width: 100%;
		line-height: 1.05;
		text-align: center;
		justify-self: center;
    }

    .admin-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }*/

    .admin-grid > * {
        min-width: 0;
    }
}

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

	body > header {
        grid-template-columns: 80px 1fr 80px;
        
        padding: 0 16px;
    }

    .header-logo img {
		width: clamp(90px, 9vw, 160px);
	}

    body > header > h1 {
        line-height: 0.95;
        white-space: normal;
        text-wrap: balance;
    }

    .nav-toggler {
        width: 44px;
        height: 44px;
        justify-self: end;
    }

    .l1 {
        transform: translateY(-5px);
    }
    
    .l3 {
        transform: translateY(+5px);
    }
	
	.reference-row {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .reference-row span {
        margin-bottom: 4px;
    }
	
	.admin-section {
        padding: 24px 18px;
    }

    .admin-section h2 {
        margin: -24px -18px 24px -18px;
        padding: 16px 18px;
    }
}