/* Variables CSS pour une gestion facile des couleurs */
:root {
    --primary-color: #FF7E00;
    --secondary-color: #FFB347;
    --text-color-dark: #333;
    --text-color-light: #fff;
    --background-light: #f9f9f9;
    --background-dark: #333;
    --border-color: #ddd;
}

/* --- Styles de base --- */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: white;
}

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

a:hover,
nav a:hover {
    text-decoration: underline;
}

/* --- Conteneurs généraux --- */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    color: var(--text-color-light);
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* --- Navigation --- */
nav {
    margin: 10px 0;
}

nav a {
    margin: 0 15px;
    font-size: 1.2rem;
    color: var(--text-color-light);
}

/* --- Bannière --- */
.banner {
    background: url("/image/banniere.png") no-repeat center center/cover;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color-light);
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.4);
}

.banner-content h2 {
    font-size: 2.5rem;
    margin: 0;
}

.banner-content p {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* --- Carrousel --- */
.carousel-wrapper {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
}

.carousel-title {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.carousel-auto {
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.carousel-container img:nth-child(1) {
    animation: fade 15s infinite 0s;
}
.carousel-container img:nth-child(2) {
    animation: fade 15s infinite 3s;
}
.carousel-container img:nth-child(3) {
    animation: fade 15s infinite 6s;
}
.carousel-container img:nth-child(4) {
    animation: fade 15s infinite 9s;
}
.carousel-container img:nth-child(5) {
    animation: fade 15s infinite 12s;
}

@keyframes fade {
    0%, 25% { opacity: 1; }
    30%, 100% { opacity: 0; }
}

/* --- Sections --- */
.about-section, .archive-section, #posts, #prayer-night, #contact {
    background-color: var(--background-light);
    padding: 40px 20px;
    margin-top: 40px;
    border-radius: 6px;
}

.about-section h2,
.archive-section h2,
#posts h1, #posts h2,
#prayer-night h2,
#contact h2 {
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

#posts h3 {
    margin-top: 20px;
    color: var(--primary-color);
}

#posts h4 {
    margin-top: 5px;
}

.imageStyle {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 8px;
}

#prayer-night p, #about p {
    font-size: 1.1rem;
    color: var(--text-color-dark);
    line-height: 1.6;
}

/* --- Videos --- */
.video-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.video-thumbnail {
    width: 220px;
    text-align: center;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.video-thumbnail img:hover {
    transform: scale(1.05);
}

.video-thumbnail p {
    font-size: 1rem;
    margin-top: 10px;
    color: var(--text-color-dark);
}

/* --- YouTube link button --- */
.youtube-link {
    text-align: center;
    margin-top: 30px;
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    background-color: #FF0000;
    color: white;
    padding: 10px 25px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.youtube-btn:hover {
    background-color: #cc0000;
}

.youtube-btn img {
    margin-right: 12px;
    border-radius: 30%;
    width: 40px;
    height: 40px;
}

/* --- Formulaire de contact --- */
.contact-container {
    display: flex;
    justify-content: center;
}

.contact-form {
    max-width: 600px;
    width: 100%;
    background-color: var(--background-light);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-color-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form button {
    display: block;
    margin: 0 auto;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--secondary-color);
}

/* --- Footer --- */
footer {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    text-align: center;
    padding: 1rem 0;
    margin-top: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .container {
        max-width: 96%;
        padding: 0 10px;
        margin: 15px auto;
    }
    header h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    nav a {
        font-size: 1rem;
        margin: 0 8px;
    }
    .banner {
        height: 250px;
    }
    .carousel-auto {
        height: 200px;
        max-width: 100%;
    }
    .video-thumbnail {
        width: 45%;
        margin: 0 auto;
    }
    .youtube-btn {
        font-size: 1rem;
        padding: 8px 18px;
    }
    .youtube-btn img {
        width: 30px;
        height: 30px;
    }
    .contact-form {
        padding: 15px;
    }
}
