/* ============================================
   VeryCATHO – Main Stylesheet
   Thème : Liturgique & Élégant
   Palettes : Or, pourpre, blanc, bleu profond
   ============================================ */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- Couleurs principales --- */
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --gold-dark: #a8892b;

    --purple: #4a2c5e;
    --purple-light: #7a4a9e;
    --purple-dark: #2e1a3b;

    --white: #fefcf7;
    --off-white: #f9f5ed;
    --cream: #f2ede4;

    --dark: #1a1423;
    --dark-soft: #2c2433;

    --gray: #6b5f70;
    --gray-light: #b5a9b8;

    /* --- Typographie --- */
    --font-serif: 'EB Garamond', 'Times New Roman', serif;
    --font-display: 'Cinzel', 'Georgia', serif;
    --font-sans: 'Source Sans 3', 'Segoe UI', sans-serif;

    /* --- Tailles --- */
    --header-height: 72px;
    --radius: 16px;
    --shadow: 0 12px 40px rgba(26, 20, 35, 0.15);
    --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.25);

    /* --- Transitions --- */
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--purple-dark);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto;
}

.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 12px auto 16px;
    max-width: 200px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.divider-cross {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 400;
    font-family: var(--font-serif);
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(26, 20, 35, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(26, 20, 35, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.06em;
}

.logo-name span {
    color: var(--gold);
}

nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
}

nav ul li a {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.03em;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

/* Mobile nav toggle (JS géré) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    border-radius: 4px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ========== HERO ========== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/hero.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.66);
    pointer-events: none;
}

#hero .container {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 60px 24px;
}

.hero-title {
    font-family: var(--font-display), sans-serif;
    font-size: 4.4rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.hero-title span {
    color: var(--gold);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 4px;
    opacity: 0.4;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 620px;
    margin: 0 auto 36px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.btn-primary,
.btn-secondary,
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 38px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(201, 168, 76, 0.35);
    background: var(--gold-light);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* ========== WHY ========== */
#why {
    padding: 80px 0;
    background: var(--off-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(201, 168, 76, 0.08);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(26, 20, 35, 0.12);
    border-color: var(--gold-light);
}

.why-icon {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--purple-dark);
    margin-bottom: 12px;
}

.why-card p {
    color: var(--gray);
    font-size: 0.98rem;
}

/* ========== FEATURES ========== */
#features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feat-card {
    background: var(--off-white);
    padding: 32px 28px;
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
    transition: var(--transition);
}

.feat-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.feat-emoji {
    font-size: 2.2rem;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}

.feat-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--purple-dark);
    margin-bottom: 8px;
}

.feat-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========== FOR (Fidèles & Paroisses) ========== */
#for {
    padding: 80px 0;
    background:
            radial-gradient(ellipse at 0% 50%, rgba(74, 44, 94, 0.04) 0%, transparent 60%),
            var(--off-white);
}

.for-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.for-card {
    padding: 44px 36px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.for-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 56px rgba(26, 20, 35, 0.10);
}

.for-faithful {
    border-top: 6px solid var(--gold);
}

.for-parish {
    border-top: 6px solid var(--gold);
}

.for-icon {
    font-size: 2.6rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.for-parish .for-icon {
    color: var(--gold);
}

.for-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--purple-dark);
    margin-bottom: 16px;
}

.for-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.for-card ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark-soft);
    font-size: 0.98rem;
}

.for-card ul li::before {
    content: '✠';
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 400;
}

.for-parish ul li::before {
    color: var(--purple-light);
}

/* ========== HOW IT WORKS ========== */
#how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    padding: 32px 16px;
    border-radius: var(--radius);
    background: var(--off-white);
    transition: var(--transition);
    border: 1px solid transparent;
}

.step:hover {
    border-color: var(--gold-light);
    background: var(--white);
    box-shadow: var(--shadow);
}

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h5 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--purple-dark);
    margin-bottom: 8px;
}

.step p {
    color: var(--gray);
    font-size: 0.92rem;
    max-width: 220px;
    margin: 0 auto;
}

/* ========== SCREENSHOTS ========== */
#screenshots {
    padding: 80px 0;
    background: var(--off-white);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.screenshot-placeholder {
    background: var(--white);
    border-radius: var(--radius);
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed rgba(201, 168, 76, 0.25);
    transition: var(--transition);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.screenshot-placeholder span {
    font-size: 4rem;
    opacity: 0.5;
    margin-bottom: 12px;
}

.screenshot-placeholder p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

.screenshot-placeholder:hover {
    border-color: var(--gold);
    background: var(--off-white);
}

/* ========== CTA ========== */
#cta {
    padding: 80px 0 72px;
    background:
            radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.10) 0%, transparent 60%),
            var(--purple-dark);
    text-align: center;
    border-top: 2px solid rgba(201, 168, 76, 0.15);
}

#cta h2 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 12px;
    line-height: 1.2;
}

#cta p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-btn {
    background: var(--gold);
    color: var(--dark);
    padding: 16px 48px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 56px rgba(201, 168, 76, 0.35);
    background: var(--gold-light);
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 56px 32px 24px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand .logo .logo-name {
    font-size: 1.2rem;
}

.footer-brand p {
    font-size: 0.92rem;
    max-width: 360px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 16px;
}

.contact p {
    font-size: 0.88rem;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.45);
}

.contact p strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

/* ========== RESPONSIVE ========== */

/* Tablettes & petits écrans */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.4rem;
    }

    .why-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 16px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(26, 20, 35, 0.98);
        backdrop-filter: blur(12px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    }

    nav ul.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .why-grid,
    .features-grid,
    .for-grid,
    .steps,
    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .for-card {
        padding: 32px 24px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    #cta h2 {
        font-size: 1.8rem;
    }

    #hero .container {
        padding: 40px 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 34px;
        width: 34px;
    }

    .step {
        padding: 24px 12px;
    }

    .step-num {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .screenshot-placeholder {
        min-height: 200px;
        padding: 32px 16px;
    }
}

/* ========== UTILITAIRES ========== */
.text-gold {
    color: var(--gold);
}

.text-purple {
    color: var(--purple);
}

.bg-off-white {
    background: var(--off-white);
}

.bg-white {
    background: var(--white);
}

.text-center {
    text-align: center;
}

.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}