/* ============================================================
   Sette Chiese — Style principal
   Palette inspirée de la couverture du guide :
   Fond crème, accents bordeaux/or, typographie classique
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

:root {
    --cream:      #faf6ef;
    --cream-dark: #f0e8d8;
    --bordeaux:   #6b1d2a;
    --bordeaux-light: #8a2e3e;
    --gold:       #c9a456;
    --gold-light: #d4b76a;
    --text:       #2c2420;
    --text-light: #5c524a;
    --white:      #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', -apple-system, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.25;
}

a { color: var(--bordeaux); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
    background: var(--bordeaux);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.02em;
}
.nav-brand span { color: var(--white); font-weight: 400; opacity: 0.85; }

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------- LANG SWITCH ---------- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 1.5rem;
}
.lang-switch a {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    transition: all 0.2s;
}
.lang-switch a:hover {
    color: var(--gold);
}
.lang-switch a.lang-active {
    color: var(--gold);
    background: rgba(201,164,86,0.15);
}
.lang-sep {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(160deg, rgba(107,29,42,0.88) 0%, rgba(44,36,32,0.75) 100%),
        url('images/couverture-guide.png') center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--cream));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem 1.5rem;
}

.hero-cross {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 2rem;
}

.hero p.lead {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.92;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.25s;
    border: 2px solid transparent;
}

.btn-gold {
    background: var(--gold);
    color: var(--bordeaux);
}
.btn-gold:hover {
    background: var(--gold-light);
    color: var(--bordeaux);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201,164,86,0.4);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.9);
    background: transparent;
}
.btn-outline-light:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,164,86,0.08);
}

/* App CTA — primary action linking to the interactive app */
.app-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-right: 2rem;
    box-shadow: 0 6px 20px rgba(201,164,86,0.30);
}
.app-cta:hover { box-shadow: 0 10px 28px rgba(201,164,86,0.45); }
.app-cta .app-arrow {
    transition: transform 0.25s;
    font-size: 1.1em;
    line-height: 1;
}
.app-cta:hover .app-arrow { transform: translateX(4px); }
.app-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--bordeaux, #6b1a1a);
    color: var(--white, #fff);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 9px;
    border-radius: 12px;
    border: 2px solid var(--white, #fff);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    animation: app-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes app-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.app-helper {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
    .app-badge { animation: none; }
}

/* ---------- SECTIONS ---------- */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.2rem;
    color: var(--bordeaux);
    margin-bottom: 0.5rem;
}
.section-title .ornament {
    display: inline-block;
    width: 50px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 0.75rem;
}
.section-title p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- TRADITION / HISTOIRE ---------- */
.tradition {
    background: var(--white);
}

.tradition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.tradition-text blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--bordeaux);
    border-left: 3px solid var(--gold);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
}

.tradition-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.tradition-image {
    position: relative;
}
.tradition-image img {
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.tradition-image::after {
    content: '';
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    z-index: -1;
}

/* ---------- LES 7 ÉGLISES ---------- */
.churches {
    background: var(--cream);
}

.churches-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.churches-major,
.churches-minor {
    display: grid;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.churches-major {
    grid-template-columns: repeat(2, 1fr);
}

.churches-minor {
    grid-template-columns: repeat(3, 1fr);
}

.church-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 3px solid var(--gold);
}
.church-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.church-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--cream-dark);
}
.church-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.church-card:hover .church-img img {
    transform: scale(1.05);
}

.church-body {
    padding: 1.5rem 2rem 2rem;
}

.church-card .number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.church-card h3 {
    font-size: 1.2rem;
    color: var(--bordeaux);
    margin-bottom: 0.5rem;
}

.church-card .saint {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.church-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---------- CARTE INTERACTIVE ---------- */
.map-section {
    background: var(--white);
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--cream);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--cream-dark);
}

.map-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.map-legend-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1.25rem;
}

/* Map tooltip */
.map-tooltip {
    position: absolute;
    background: var(--bordeaux);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 220px;
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s;
}
.map-tooltip.visible {
    opacity: 1;
}
.map-tooltip h4 {
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 0.2rem;
}

/* ---------- INFOS PRATIQUES ---------- */
.practical {
    background: var(--cream);
}

.practical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.practical-item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.practical-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.practical-item h3 {
    font-size: 1.1rem;
    color: var(--bordeaux);
    margin-bottom: 0.75rem;
}

.practical-item p {
    font-size: 0.92rem;
    color: var(--text-light);
}

/* ---------- ILS EN PARLENT ---------- */
.press-section {
    background: var(--white);
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.press-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: none;
    transition: filter 0.2s;
}
.press-card:hover .press-logo-img {
    filter: brightness(1.1);
}

.press-card {
    display: block;
    background: var(--cream);
    border-radius: 10px;
    padding: 2rem;
    border-left: 4px solid var(--gold);
    transition: all 0.25s;
    color: var(--text);
}
.press-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    color: var(--text);
    border-left-color: var(--bordeaux);
}

.press-source {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cream-dark);
}
.press-logo {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}
.press-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}
.press-name {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bordeaux);
}

.press-card h3 {
    font-size: 1.15rem;
    color: var(--bordeaux);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.press-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.press-date {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ---------- LE GUIDE ---------- */
.guide-section {
    background: linear-gradient(160deg, var(--bordeaux) 0%, #3a1018 100%);
    color: var(--white);
}

.guide-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: center;
}

.guide-cover {
    position: relative;
}
.guide-cover img {
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}
.guide-cover:hover img {
    transform: rotate(-2deg) scale(1.03);
}

.guide-info h2 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.guide-info .author {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.guide-preface {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem !important;
    border-left: 3px solid var(--gold);
    font-style: italic;
    opacity: 0.95;
    line-height: 1.7;
}

.guide-info p {
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.guide-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
}

.guide-details dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    font-weight: 700;
}
.guide-details dd {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin: 1rem 0;
}

.guide-buy-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- SECTION TITLE LIGHT (on dark bg) ---------- */
.section-title-light h2 {
    color: var(--gold);
}
.section-title-light p {
    color: rgba(255,255,255,0.75);
}
.ornament-gold {
    background: var(--gold) !important;
}

/* ---------- BUY CARDS ---------- */
.buy-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.buy-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    border-top: 3px solid var(--gold);
    text-align: center;
}

.buy-card-icon {
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.buy-card h3 {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.buy-card p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.buy-card .guide-buy-row {
    justify-content: center;
}

.buy-card .shop-details {
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.5rem;
}

.buy-card .shop-details dt {
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding-top: 0.15rem;
}

.buy-card .shop-details dd {
    line-height: 1.6;
}

/* ---------- AUTHOR BIO ---------- */
.author-section {
    background: var(--cream-dark);
}

.author-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.author-photo {
    display: flex;
    justify-content: center;
}

.author-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.author-photo-placeholder svg {
    width: 100%;
    height: 100%;
}

/* When a real photo is added, replace .author-photo-placeholder with: */
.author-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 4px solid var(--white);
}

.author-bio h3 {
    font-size: 1.5rem;
    color: var(--bordeaux);
    margin-bottom: 0.5rem;
}

.author-bio p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--bordeaux);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.footer-col h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}
.footer-bottom a { color: var(--gold); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .churches-major {
        grid-template-columns: repeat(2, 1fr);
    }
    .churches-minor {
        grid-template-columns: repeat(2, 1fr);
    }
    .press-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bordeaux);
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .lang-switch {
        margin-left: 0.75rem;
    }
    .hero { min-height: 70vh; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .tradition-grid,
    .guide-grid,
    .author-grid { grid-template-columns: 1fr; }
    .guide-grid { text-align: center; }
    .guide-cover img { max-width: 280px; margin: 0 auto; display: block; }
    .guide-buy-row { flex-direction: column; align-items: center; }
    .churches-major,
    .churches-minor { grid-template-columns: 1fr; }
    .press-grid { grid-template-columns: 1fr; }
    .buy-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .map-legend-note { padding: 0 1rem; }
}
