/* Style global du body */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #f1e7ea; /* Bleu pastel pour le texte */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
	background-image: url(mariage.png);
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	
}

    
   

/* Style du header */
header {
    color: #f1edee; /* Bleu pastel pour le texte */
    padding: 20px 0;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    width: 100%;
    margin-bottom: 30px;
}

/* === Image sous le titre === */
.image-banniere {
    position: relative;
    width: 100%;
    height: 400px; /* Ajuste la hauteur selon tes préférences */
    overflow: hidden;
    margin-top: 20px;
}

.image-banniere img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image recouvre toute la zone sans déformation */
}

/* Pour ajouter un effet tamisé à l'image */
.image-banniere::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Tamisage noir à 50% de transparence */
}

/* Container pour les sections */
.container {
    flex: 1;
    width: 80%;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    text-align: center; /* Centre le texte */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none; /* Enlève l'ombre */
    background-color: transparent; /* Enlève le fond blanc */
    margin-top: -3%;
}

/* Formulaire */
form {
    background-color: #fff1e5; /* Fond beige clair pour le formulaire */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Style des inputs et textareas */
input[type="text"], input[type="password"], textarea {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #d1b87f; /* Bordure couleur beige/marron clair */
    border-radius: 6px;
    background-color: #fff;
    font-size: 16px;
    color: #5a7a97; /* Bleu pastel pour le texte */
}

/* Boutons */
button {
    background-color: white;/* Rose doux */
    color: #fff;
    padding: 14px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin-top: 15px;
}

button:hover {
    background-color: #f1a7b1; /* Rose plus vif au survol */
    transform: translateY(-3px); /* Légère animation de survol */
}

button:active {
    transform: translateY(0); /* Effet de pression */
}

/* Style des liens dans la nav */
nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 10px;
}

nav ul li a {
    text-decoration: none;
    color: white;/* Bleu pastel pour les liens */
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #f7d3e0; /* Rose clair au survol */
    color: #fff;
}

/* Style des cards */
.card {
    background-color: #fff7f2; /* Fond doux */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px); /* Légère élévation au survol */
}

.card-header {
    background-color: #f7d3e0; /* Rose pâle pour l'entête de card */
    color: #bbefff; /* Bleu pastel pour le texte */
    padding: 12px;
    border-radius: 8px 8px 0 0;
    font-size: 20px;
    text-align: center;
}

.card-body {
    padding: 15px;
    font-size: 16px;
    color: #bbefff; /* Bleu pastel pour le texte */
}

/* Footer */
footer{
    color: #333;
}


/* === Page Connexion === */
body.page-connexion {
    justify-content: center; /* Centrer verticalement */
    background-color: #5a7a97;
}

body.page-connexion h1 {
    margin-bottom: 20px;
    color:#5a7a97;
}

body.page-connexion form {
    background-color: #fff1e5;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px; /* Tu peux ajuster */
    box-sizing: border-box;
    text-align: left;
}

body.page-connexion label {
    font-weight: bold;
    color: #333;
}

body.page-connexion input[type="text"],
body.page-connexion input[type="password"] {
    width: calc(100% - 28px); /* Pour éviter de trop coller */
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #d1b87f;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}

body.page-connexion button {
    background-color:#5a7a97;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    font-size: 16px;
}

body.page-connexion button:hover {
    background-color: #f1a7b1;
}

/* === Page Inscription & Connexion === */
body.page-inscription-connexion {
    justify-content: center; /* Centrer verticalement */
    background-color: #5a7a97;
}

body.page-inscription-connexion h1 {
    margin-bottom: 20px;
    color:#5a7a97;
}

body.page-inscription-connexion form {
    background-color: #fff1e5;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    text-align: left;
}

body.page-inscription-connexion label {
    font-weight: bold;
    color: #333;
}

body.page-inscription-connexion input[type="text"],
body.page-inscription-connexion input[type="password"],
body.page-inscription-connexion input[type="email"] {
    width: calc(100% - 28px);
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #d1b87f;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}

body.page-inscription-connexion button {
    background-color:#5a7a97;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    font-size: 16px;
}

body.page-inscription-connexion button:hover {
    background-color:#5a7a97;
}



/* === Page Modifier Profil === */
body.page-profil {
    justify-content: center;
    background-color: 	#5a7a97;
}

body.page-profil h1 {
    margin-bottom: 20px;
    color:#5a7a97;
}

body.page-profil form {
    background-color: #fff1e5;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    text-align: left;
}

body.page-profil label {
    font-weight: bold;
    color: #333;
}

body.page-profil input[type="text"],
body.page-profil input[type="password"] {
    width: calc(100% - 28px);
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #d1b87f;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}

body.page-profil button {
    background-color:#5a7a97;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    font-size: 16px;
}

body.page-profil button:hover {
    background-color:#5a7a97;
}

body.page-profil p {
    color: red;
    text-align: center;
}

body.page-profil a {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #551a8b;
    text-decoration: none;
}

body.page-profil a:hover {
    text-decoration: underline;
    
}

/* === Page Livre d'Or améliorée === */
body.page-livre-or {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #5a7a97;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

body.page-livre-or h1 {
    color:#5a7a97;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

body.page-livre-or form {
    margin-bottom: 20px;
    display: flex;
    gap: 20px; /* Espacement plus grand */
    width: 100%; /* Formulaire qui occupe toute la largeur disponible */
}

body.page-livre-or input[type="text"] {
    padding: 10px 15px;
    border: 1px solid #d1b87f;
    border-radius: 5px;
    width: 400px; /* Augmenter la largeur */
    height: 20px;
}

body.page-livre-or button {
    background-color:#5a7a97;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 400px; /* Garder la même largeur que l'input, si souhaité */
    height: 40px;
}

body.page-livre-or button:hover {
    background-color:#5a7a97;
}

body.page-livre-or .comment {
    width: 100%;
    max-width: 600px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

body.page-livre-or .comment p {
    margin: 0;
    line-height: 1.6;
    color: white;
}

body.page-livre-or .comment strong {
    color:#5a7a97;
}

body.page-livre-or .pagination {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

body.page-livre-or .pagination a {
    background-color:#5a7a97;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

body.page-livre-or .pagination a.active {
    background-color: #f1a7b1;
    font-weight: bold;
}

body.page-livre-or .pagination a:hover {
    background-color: #f1a7b1;
}

body.page-livre-or .btn-primary {
    background-color: #f2c6d2;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    transition: background-color 0.3s;
}

body.page-livre-or .btn-primary:hover {
    background-color: #f1a7b1;
}

/* === Page Commentaire === */
body.page-commentaire {
    justify-content: center;
    background-color: #5a7a97;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

body.page-commentaire h1 {
    margin-bottom: 20px;
    color:#5a7a97;
    text-align: center;
}

body.page-commentaire form {
    background-color: #fff1e5;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    text-align: left;
}

body.page-commentaire label {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

body.page-commentaire textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #d1b87f;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
    resize: none;
}

body.page-commentaire button {
    background-color:#5a7a97;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

body.page-commentaire button:hover {
    background-color: #f1a7b1;
}

body.page-commentaire p a {
    color:#5a7a97;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
}

body.page-commentaire p a:hover {
    text-decoration: underline;
}

.success-message {
    color: white; 
    font-weight: bold;
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
}

.error-message {
    color: #F44336;  /* Couleur rouge */
    font-weight: bold;
    font-size: 16px;
    background-color: #FFEBEE;  /* Fond rouge clair */
    padding: 10px;
    border-radius: 5px;
}