@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f5f3f0;
    --accent-color: #3b82f6;
    --accent-light: #93c5fd;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --light-text-color: #ffffff;
    --border-color: #e5e7eb;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--secondary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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


.hero {
    animation: fadeInUp 1s ease-in-out;
}

.hero.header-bg {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0;
    z-index: 0;
}

.hero-parallax-bg {
    position: absolute;
    inset: -10% 0; /* débordement haut/bas pour l'effet parallax */
    background-image: url('../images/gallery/painesperancewall1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ← crée l'effet parallax */
    z-index: 0;
    opacity: 0.75;
}

.hero.header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.60) 100%
    );
    z-index: 1;
}

.hero-text-layer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    margin-top: 80px;
}

.hero-text-layer h1,
.hero-text-layer h2,
.hero-text-layer p {
    color: #ffffff;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-text-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero h1 span {
    color: var(--accent-light);
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--light-text-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--accent-light);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(30, 58, 138, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

nav.scrolled .nav-links a {
    color: var(--light-text-color);
}

nav.scrolled .nav-links a:hover {
    color: var(--accent-light);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

nav.scrolled .burger div {
    background-color: var(--light-text-color);
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--light-text-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-parallax-bg {
        background-attachment: scroll; /* iOS ne supporte pas fixed */
        inset: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    nav {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(30, 58, 138, 0.95);
        padding: 20px;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: flex;
    }
}

/* Sections */
section {
    padding: 80px 20px;
}

section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

section p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.8;
}

/* News Section */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-container article {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.news-container article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.news-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.news-container h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(147, 197, 253, 0.1) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 300px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-btn {
    margin-top: 20px;
}

/* Services Section */
.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
    border-color: var(--accent-light);
}

.service-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-box p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-box {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 250px;
}

.gallery-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-box:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.gallery-box:hover img {
    transform: scale(1.1);
}

/* Creations Grid */
.creations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.creation-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.creation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.creation-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.creation-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.download-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.download-links a {
    padding: 8px 15px;
    background: var(--accent-color);
    color: var(--light-text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.download-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 30px auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--secondary-color);
    padding: 15px 20px;
    margin-top: 80px;
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 50px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-section h3 {
    color: var(--accent-light);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Legal Sections */
.legal-section {
    background: var(--secondary-color);
    padding: 60px 20px;
}

.legal-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-section li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Donation Section */
.donation-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(147, 197, 253, 0.1) 100%);
}

.donation-image-container {
    text-align: center;
    margin: 40px 0;
}

.donation-image {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.rib-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.donation-btn {
    background: var(--accent-color);
    color: var(--light-text-color);
    border-color: var(--accent-color);
}

.donation-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(30, 58, 138, 0.95);
        padding: 20px;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .burger {
        display: flex;
    }

    .burger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active div:nth-child(2) {
        opacity: 0;
    }

    .burger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-content,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .service-container,
    .gallery-container,
    .creations-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 20px;
    }

    section h2 {
        font-size: 2rem;
    }

    .form-container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 10px 15px;
    }

    .logo img {
        height: 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section h3 {
        font-size: 1.1rem;
    }

    .nav-links {
        top: 50px;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav,
    footer,
    .btn {
        display: none;
    }

    body {
        background: white;
    }
}

/* HERO AVEC WALLPAPER EN FULL BACKGROUND */

.hero {
    /* Dimensions plein écran */
    position: relative;
    min-height: 100vh;
    width: 100%;
    
    /* Centrage du contenu */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Espacement */
    padding: 150px 20px 80px;
    
    background-image: url("images/gallery/painesperancewall1.jpeg");
    background-position: center center;
    background-size: cover; /* Couvre tout l'espace */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Effet parallax */
    
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(30, 58, 138, 0.4) 0%, 
        rgba(30, 58, 138, 0.2) 50%,
        rgba(30, 58, 138, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero > *,
.hero h1,
.hero p,
.hero h2,
.hero .btn,
.hero br {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 
        3px 3px 10px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-in-out;
    line-height: 1.2;
}

.hero h1 span {
    color: #93c5fd; /* Bleu clair accent */
    text-shadow: 
        3px 3px 10px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(59, 130, 246, 0.6);
}

.hero p {
    font-size: 1.4rem;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    max-width: 900px;
    line-height: 1.8;
}

/* "Yéhoshoua est Seigneur" */
.hero h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #93c5fd;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(59, 130, 246, 0.6);
    margin-bottom: 40px;
    font-family: var(--font-heading);
}

.hero .btn {
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 15px 40px;
    animation: fadeInUp 1.2s ease-in-out;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

header {
    min-height: auto !important;
    background: none !important;
    background-image: none !important;
}

header::before {
    display: none !important;
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 30px 60px;
        background-attachment: scroll; /* Meilleure perf mobile */
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero .btn {
        font-size: 1rem;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 50px;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero h2 {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .hero .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    background-color: var(--primary-color); /* Bleu foncé de secours */