/* ============================================================
ASPHANE — Feuille de style principale (Édition Héritage)
Association de Sauvegarde du Patrimoine Historique et
Artistique de Nonancourt et son Église
============================================================ */

/* SOMMAIRE :
01. Variables & Base
02. En-tête & Navigation
03. Page d'Accueil : Hero
04. Page d'Accueil : Sections (Présentation, Missions, Église...)
05. Page d'Accueil : Patrimoine (Mosaïque Interactive)
06. Pied de Page (Footer, Newsletter, Partenaires)
07. Pages Internes (Actualités, Légales)
08. Éléments d'Interface (Lightbox, Back to top)
09. Support Ghost (Koenig)
10. Responsive Global Mobile
*/


/* ============================================================
01. VARIABLES & BASE
============================================================ */
:root {
--color-stone: #1e1c18; /* Pierre plus profonde */
--color-oak: #4a3220; /* Chêne brûlé */
--color-forest: #1b3229; /* Vert plus sombre et noble */
--color-forest-light: #3d6b5a;
--color-parchment: #fdfaf3; /* Teinte papier plus naturelle */
--color-parchment-2: #ede4cf; /* Parchemin moyen */
--color-cream: #faf7f1; /* Crème neutre */
--color-slate: #4a4e5a; /* Ardoise */
--color-gold: #a67c2d; /* Or vieilli */
--color-gold-light: #d4a94e;
--color-warm-gray: #9a9189;

--font-display: 'Cormorant Garamond', 'IM Fell English', Georgia, serif;
--font-body: 'Libre Baskerville', 'Book Antiqua', Georgia, serif;
--font-ui: 'Raleway', 'Gill Sans', sans-serif;

--max-width: 1180px;
--section-pad: 5rem 1.5rem;
--radius: 2px;
--transition: 0.3s ease;

--shadow-soft: 0 4px 24px rgba(44,42,37,0.10);
--shadow-card: 0 2px 16px rgba(44,42,37,0.13);
--shadow-deep: 0 10px 30px rgba(0,0,0,0.15);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
font-family: var(--font-body);
background-color: var(--color-parchment);
background-image: url("https://www.transparenttextures.com/patterns/felt-tip.png");
color: var(--color-stone);
line-height: 1.75;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

/* Typographie */
h1, h2, h3, h4 {
font-family: var(--font-display);
font-weight: 600;
letter-spacing: 0.02em;
line-height: 1.2;
text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 {
font-size: clamp(1.8rem, 3.5vw, 2.8rem);
border-bottom: 1px solid rgba(166, 124, 45, 0.2);
padding-bottom: 0.5rem;
display: inline-block;
}
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* Utilitaires & Boutons */
.container {
max-width: var(--max-width);
margin-inline: auto;
padding-inline: 1.5rem;
}

.section-label {
font-family: var(--font-ui);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.25em;
text-transform: uppercase;
color: var(--color-gold);
display: block;
margin-bottom: 0.6rem;
}

.section-title {
color: var(--color-stone);
margin-bottom: 1rem;
border-bottom: none;
}

.section-rule {
width: 3.5rem;
height: 2px;
background: var(--color-gold);
border: none;
margin-bottom: 2rem;
}

.btn {
display: inline-flex;
align-items: center;
font-family: var(--font-ui);
font-size: 0.82rem;
font-weight: 700;
letter-spacing: 0.18em;
text-transform: uppercase;
padding: 0.85em 2.2em;
border: 1px solid currentColor;
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
cursor: pointer;
position: relative;
}

.btn-primary {
background: var(--color-forest);
color: var(--color-parchment);
border-color: var(--color-forest);
box-shadow: 4px 4px 0px var(--color-stone);
}
.btn-primary:hover, .btn-primary:focus {
transform: translate(-2px, -2px);
box-shadow: 7px 7px 0px var(--color-gold);
background: var(--color-gold);
border-color: var(--color-gold);
color: var(--color-stone);
}

.btn-outline {
background: transparent;
color: var(--color-parchment);
border-color: var(--color-parchment);
}
.btn-outline:hover, .btn-outline:focus {
background: var(--color-parchment);
color: var(--color-stone);
}

.ornament {
font-family: var(--font-display);
font-size: 1.4rem;
color: var(--color-gold);
opacity: 0.6;
user-select: none;
}


/* ============================================================
02. EN-TÊTE & NAVIGATION
============================================================ */
#header {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 1000;
transition: background var(--transition), box-shadow var(--transition);
background: transparent;
}

#header.scrolled {
background: rgba(30, 28, 24, 0.96);
backdrop-filter: blur(8px);
box-shadow: 0 2px 24px rgba(0,0,0,0.22);
}

.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.1rem 2rem;
max-width: var(--max-width);
margin-inline: auto;
}

/* Logo */
.logo-block { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.logo-emblem { width: 48px; height: 48px; flex-shrink: 0; }
.logo-text { line-height: 1.1; }
.logo-sigle {
font-family: var(--font-display);
font-size: 1.55rem;
font-weight: 700;
color: var(--color-gold-light);
letter-spacing: 0.1em;
display: block;
}
.logo-name {
font-family: var(--font-ui);
font-size: 0.62rem;
font-weight: 600;
letter-spacing: 0.18em;
text-transform: uppercase;
color: rgba(245,239,227,0.65);
display: block;
}

/* Nav Desktop */
.nav-desktop { display: flex; align-items: center; gap: 2.2rem; }
.nav-desktop a {
font-family: var(--font-ui);
font-size: 0.8rem;
font-weight: 600;
letter-spacing: 0.15em;
text-transform: uppercase;
color: rgba(245,239,227,0.85);
transition: color var(--transition);
position: relative;
padding-bottom: 4px;
}
.nav-desktop a::after {
content: '';
position: absolute;
bottom: 0; left: 0;
width: 0; height: 1px;
background: var(--color-gold-light);
transition: width var(--transition);
}
.nav-desktop a:hover, .nav-desktop a:focus { color: var(--color-gold-light); }
.nav-desktop a:hover::after { width: 100%; }

/* Burger & Nav Mobile */
.burger {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 4px;
}
.burger span {
width: 26px; height: 2px;
background: var(--color-parchment);
display: block;
transition: all 0.3s ease;
transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
display: none;
flex-direction: column;
background: rgba(30, 28, 24, 0.98);
padding: 1.5rem 2rem;
border-top: 1px solid rgba(166,124,45,0.3);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
font-family: var(--font-ui);
font-size: 0.9rem;
font-weight: 600;
letter-spacing: 0.15em;
text-transform: uppercase;
color: var(--color-parchment);
padding: 0.75rem 0;
border-bottom: 1px solid rgba(245,239,227,0.1);
transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--color-gold-light); }


/* ============================================================
03. PAGE D'ACCUEIL : HERO
============================================================ */
#hero {
position: relative;
height: 100vh;
min-height: 560px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
background: var(--color-stone);
border-bottom: 8px solid var(--color-gold);
}

.hero-bg {
position: absolute;
inset: 0;
background:
linear-gradient(160deg, rgba(30,28,24,0.72) 0%, rgba(27,50,41,0.45) 50%, rgba(30,28,24,0.80) 100%),
url('https://images.unsplash.com/photo-1565030530263-bd15cd7d5e75?w=1800&q=80&fit=crop&crop=center') center/cover
no-repeat;
transform: scale(1.04);
transition: transform 8s ease;
}
#hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(30,28,24,0.7) 0%, transparent 60%);
}

.hero-content {
position: relative;
z-index: 2;
text-align: center;
max-width: 860px;
padding: 0 1.5rem;
animation: heroFadeUp 1.2s ease forwards;
opacity: 0;
}

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

.hero-eyebrow {
font-family: var(--font-ui);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.35em;
text-transform: uppercase;
color: var(--color-gold-light);
margin-bottom: 1.2rem;
display: block;
}

.hero-title {
color: var(--color-parchment);
margin-bottom: 1.4rem;
font-size: clamp(2.5rem, 8vw, 5rem);
line-height: 0.95;
text-shadow: 0 4px 15px rgba(0,0,0,0.5);
border-bottom: none;
}
.hero-title span {
color: var(--color-gold-light);
display: block;
font-style: italic;
font-size: 0.7em;
margin-top: 0.5rem;
}

.hero-sub {
font-family: var(--font-display);
font-size: clamp(1rem, 2.2vw, 1.25rem);
color: rgba(245,239,227,0.80);
font-style: italic;
margin-bottom: 2.5rem;
max-width: 640px;
margin-inline: auto;
}

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

.hero-scroll {
position: absolute;
bottom: 2rem; left: 50%;
transform: translateX(-50%);
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
color: rgba(245,239,227,0.5);
font-family: var(--font-ui);
font-size: 0.65rem;
letter-spacing: 0.25em;
text-transform: uppercase;
animation: scrollBounce 2s ease infinite;
}
.hero-scroll::after {
content: '';
width: 1px; height: 2.5rem;
background: linear-gradient(to bottom, rgba(245,239,227,0.4), transparent);
}

@keyframes scrollBounce {
0%, 100% { transform: translateX(-50%) translateY(0); }
50% { transform: translateX(-50%) translateY(8px); }
}


/* ============================================================
04. PAGE D'ACCUEIL : SECTIONS
============================================================ */

/* --- Présentation --- */
#presentation { padding: var(--section-pad); background: transparent; }
.presentation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; max-width:
var(--max-width); margin-inline: auto; }

.presentation-text p:first-of-type::first-letter {
font-family: var(--font-display);
float: left;
font-size: 4.5rem;
line-height: 0.8;
padding-top: 4px;
padding-right: 12px;
color: var(--color-gold);
font-weight: 700;
}

.presentation-img-wrap { position: relative; }
.presentation-img-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius);
box-shadow: var(--shadow-deep); }
.presentation-img-wrap::before {
content: ''; position: absolute; top: -16px; left: -16px; right: 16px; bottom: 16px;
border: 2px solid var(--color-gold); opacity: 0.4; border-radius: var(--radius); z-index: -1;
}

.quote-block {
margin: 2rem 0; padding: 1.5rem 1.8rem;
background: var(--color-parchment-2);
border-left: 3px solid var(--color-gold);
font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--color-oak); line-height: 1.6;
}

/* --- Missions --- */
#mission { padding: var(--section-pad); background: var(--color-forest); color: var(--color-parchment); position:
relative; overflow: hidden; }
#mission::before {
content: ''; position: absolute; inset: 0;
background-image: radial-gradient(rgba(245, 239, 227, 0.08) 1px, transparent 1px), radial-gradient(rgba(245, 239, 227,
0.08) 1px, transparent 1px);
background-position: 0 0, 15px 15px; background-size: 30px 30px;
}
.mission-inner { position: relative; z-index: 1; max-width: var(--max-width); margin-inline: auto; }
.mission-header { text-align: center; margin-bottom: 3.5rem; }
.mission-header .section-label { color: var(--color-gold-light); }
.mission-header .section-title { color: var(--color-parchment); }
.mission-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.mission-card {
background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(5px);
border: 1px solid rgba(212, 169, 78, 0.2); padding: 2rem 1.8rem; border-radius: var(--radius);
transition: background var(--transition), transform var(--transition);
}
.mission-card:hover { background: rgba(245,239,227,0.10); transform: translateY(-4px); }
.mission-card-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; filter: drop-shadow(0 0 8px
var(--color-gold)); }
.mission-card h3 { font-size: 1.2rem; color: var(--color-gold-light); margin-bottom: 0.8rem; }
.mission-card p { font-size: 0.92rem; color: rgba(245,239,227,0.75); line-height: 1.7; }

/* --- Église Saint-Martin --- */
#eglise { padding: var(--section-pad); background: var(--color-parchment-2); }
.eglise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; max-width:
var(--max-width); margin-inline: auto; }
.eglise-imgs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 0.8rem; }
.eglise-imgs img { width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.eglise-imgs img:first-child { grid-column: 1 / -1; aspect-ratio: 16/7; }
.eglise-imgs img:nth-child(2), .eglise-imgs img:nth-child(3) { aspect-ratio: 1; }
.eglise-features { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
.eglise-feature { display: flex; align-items: flex-start; gap: 0.9rem; padding: 0.9rem 1rem; background: white;
border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.eglise-feature-icon { font-size: 1.4rem; flex-shrink: 0; }
.eglise-feature-text h4 { font-size: 0.92rem; margin-bottom: 0.2rem; color: var(--color-oak); }
.eglise-feature-text p { font-size: 0.85rem; color: var(--color-slate); margin: 0; line-height: 1.5; }

/* --- Chiffres clés --- */
#chiffres { padding: 4rem 1.5rem; background: var(--color-stone); background-image: linear-gradient(135deg,
var(--color-stone) 60%, #3a3520 100%); }
.chiffres-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; max-width:
var(--max-width); margin-inline: auto; text-align: center; }
.chiffre-num { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: var(--color-gold);
line-height: 1; margin-bottom: 0.4rem; }
.chiffre-label { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em;
text-transform: uppercase; color: rgba(245,239,227,0.6); }

/* --- Contact --- */
#contact { padding: var(--section-pad); background: transparent; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: var(--max-width); margin-inline:
auto; align-items: start; }
.contact-info h2 { margin-bottom: 0.5rem; }
.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon { width: 2.5rem; height: 2.5rem; background: var(--color-forest); color: var(--color-parchment);
border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-item-body strong { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
text-transform: uppercase; color: var(--color-gold); display: block; margin-bottom: 0.2rem; }
.contact-item-body span { font-size: 0.9rem; color: var(--color-slate); }
.contact-form-wrap { background: white; padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow-deep); }
.contact-form-wrap h3 { font-size: 1.4rem; margin-bottom: 1.5rem; color: var(--color-forest); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600; letter-spacing:
0.1em; text-transform: uppercase; color: var(--color-slate); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #d8d0c0;
border-radius: var(--radius); font-family: var(--font-body); font-size: 0.92rem; color: var(--color-stone); background:
var(--color-cream); transition: border-color var(--transition); appearance: none; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-forest); }
.form-group textarea { resize: vertical; min-height: 130px; }


/* ============================================================
05. PAGE D'ACCUEIL : PATRIMOINE (Mosaïque Interactive)
============================================================ */
#patrimoine { padding: var(--section-pad); background: transparent; }
.patrimoine-header { max-width: var(--max-width); margin-inline: auto; margin-bottom: 2.5rem; }

/* La Grille Mosaïque (Desktop) */
.galerie-grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-auto-rows: 220px;
gap: 0.6rem;
max-width: var(--max-width);
margin: 0 auto;
}

/* Placement asymétrique des pièces */
@media (min-width: 901px) {
.galerie-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.galerie-item:nth-child(2) { grid-column: span 4; }
.galerie-item:nth-child(3) { grid-column: span 3; }
.galerie-item:nth-child(4) { grid-column: span 4; }
.galerie-item:nth-child(5) { grid-column: span 3; }
.galerie-item:nth-child(6) { grid-column: span 5; }
.galerie-item:nth-child(7) { grid-column: span 7; }
}

/* Style des cartes images */
.galerie-item {
position: relative;
border-radius: var(--radius);
overflow: hidden;
cursor: pointer;
background: transparent;
border: 1px solid transparent;
transition: all 0.4s ease;
}

.galerie-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s ease;
}

/* Masque textuel (Overlay) */
.galerie-overlay {
position: absolute;
inset: 0;
background: rgba(15, 15, 15, 0.85); /* Fond sombre pour la lisibilité */
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 1.5rem;
opacity: 0;
transition: opacity 0.4s ease;
}

.overlay-text h3 { color: var(--color-gold); margin-bottom: 0.5rem; font-size: 1.2rem; }
.overlay-text p { color: var(--color-parchment); font-size: 0.85rem; line-height: 1.4; margin: 0; }
.overlay-btn { color: var(--color-gold-light); font-size: 0.7rem; text-transform: uppercase; font-weight: bold; }

/* L'effet au survol : Bordure dorée + Zoom + Overlay */
.galerie-item:hover {
border-color: var(--color-gold);
transform: scale(1.01);
z-index: 10;
box-shadow: var(--shadow-deep);
}
.galerie-item:hover img { transform: scale(1.05); }
.galerie-item:hover .galerie-overlay { opacity: 1; }

/* Adaptation Mobile & Tablette de la mosaïque */
@media (max-width: 900px) {
.galerie-grid {
grid-template-columns: 1fr 1fr;
grid-auto-rows: 180px;
}
.galerie-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
.galerie-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 580px) {
.galerie-grid {
grid-template-columns: 1fr;
grid-auto-rows: 240px;
}
.galerie-item {
grid-column: span 1 !important;
grid-row: span 1 !important;
}
}


/* ============================================================
06. PIED DE PAGE (Footer, Newsletter, Partenaires)
============================================================ */
#footer {
background: #151310;
color: rgba(245,239,227,0.65);
padding: 4rem 1.5rem 2rem;
overflow: hidden; /* SÉCURITÉ MOBILE : Empêche la piste infinie de dézoomer l'écran */
}

.footer-grid {
display: grid;
gap: 3rem;
max-width: var(--max-width);
margin-inline: auto;
padding-bottom: 3rem;
border-bottom: 1px solid rgba(245,239,227,0.1);
}

/* --- LE PLACEMENT SUR ORDINATEUR (La correction est ici) --- */
@media (min-width: 900px) {
.footer-grid {
grid-template-columns: 1.6fr 1fr 1fr;
}

.footer-brand {
grid-column: 1;
grid-row: 1 / span 2; /* La newsletter et le logo prennent toute la hauteur à gauche */
padding-right: 3rem;
}

.footer-partners {
grid-column: 2 / 4; /* Les partenaires s'étalent sur les 2 colonnes de droite */
grid-row: 2; /* Ils se placent sur la 2ème ligne (sous les menus) */
align-self: end;
}
}

/* --- Styles du Footer Classique --- */
.footer-brand .logo-sigle { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.footer-brand p { font-size: 0.85rem; line-height: 1.65; margin-top: 1rem; max-width: 280px; }

.footer-col h4 {
font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(245,239,227,0.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--color-gold-light); }
.footer-col address { font-size: 0.87rem; font-style: normal; line-height: 1.8; color: rgba(245,239,227,0.6); }

.footer-bottom {
max-width: var(--max-width); margin-inline: auto; padding-top: 1.8rem;
display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; font-size: 0.78rem;
}
.footer-bottom a { color: rgba(245,239,227,0.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--color-gold-light); }
.footer-credit { color: rgba(245,239,227,0.35); }
.footer-credit a { color: var(--color-gold); font-weight: 600; }


/* --- Footer : Newsletter --- */
.footer-newsletter { margin-top: 3rem; border-top: 1px solid rgba(245,239,227,0.1); padding-top: 2rem; }
.footer-newsletter h4 { color: var(--color-parchment); font-size: 1rem; text-transform: uppercase; letter-spacing:
0.1em; margin-bottom: 0.8rem; }
.footer-newsletter p { font-size: 0.85rem; color: rgba(245,239,227,0.5); margin-bottom: 1.2rem; line-height: 1.5; }

.footer-brand form { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-brand input { width: 100%; padding: 0.8rem 1rem; background: rgba(245, 239, 227, 0.05); border: 1px solid
rgba(245, 239, 227, 0.2); color: var(--color-parchment); font-family: var(--font-body); font-size: 0.85rem;
border-radius: var(--radius); outline: none; transition: border-color 0.3s ease; }
.footer-brand input:focus { border-color: var(--color-gold); }

.footer-brand button[type="submit"] { width: 100%; padding: 0.9rem; background: transparent; border: 1px solid
var(--color-gold); color: var(--color-gold); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem;
font-weight: 700; cursor: pointer; border-radius: var(--radius); transition: all 0.3s ease; }
.footer-brand button[type="submit"]:hover { background: var(--color-gold); color: #1a1a1a; transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(212, 169, 78, 0.2); }

.message-success { display: none; font-size: 0.8rem; margin-top: 0.5rem; color: var(--color-gold-light); }
.message-error { display: none; font-size: 0.8rem; margin-top: 0.5rem; color: #ff6b6b; }


/* --- Footer : Partenaires (Défilement Infini) --- */
.footer-partners {
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid rgba(245,239,227,0.1);
width: 100%;
max-width: 100%;
min-width: 0;
}

.footer-partners h4 {
color: rgba(245,239,227,0.3);
font-size: 0.75rem;
font-family: var(--font-ui);
text-transform: uppercase;
letter-spacing: 0.15em;
margin-bottom: 1.5rem;
display: block;
}

.partners-scroll-container { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent,
black 10%, black 90%, transparent); mask-image: linear-gradient(to right, transparent, black 10%, black 90%,
transparent); }
.partners-scroll-track { display: flex; gap: 1.5rem; width: max-content; animation: scroll-loop 30s linear infinite; }
.partners-scroll-track:hover { animation-play-state: paused; }

@keyframes scroll-loop { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 0.75rem)); } }

.partner-link { display: flex; justify-content: center; align-items: center; width: 150px; height: 75px;
background-color: #ffffff; border-radius: var(--radius); padding: 0.8rem 1.2rem; opacity: 0.6; transition: all 0.4s
ease; flex-shrink: 0; }
.partner-link img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%); transition: all
0.4s ease; }
.partner-link:hover { opacity: 1; transform: translateY(-4px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.partner-link:hover img { filter: grayscale(0%); }


/* ============================================================
07. PAGES INTERNES (Actualités & Légales)
============================================================ */

/* --- Page Actualités (Grille d'articles) --- */
.actualites-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; margin-top:
1rem; }
.article-card { background: #ffffff; border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden;
display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition);
border-top: 4px solid var(--color-gold); }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.article-card-img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-card-img { transform: scale(1.03); }
.article-card-content { padding: 2.2rem; display: flex; flex-direction: column; flex-grow: 1; }
.article-meta { font-family: var(--font-ui); font-size: 0.75rem; color: var(--color-gold); text-transform: uppercase;
letter-spacing: 0.12em; margin-bottom: 0.8rem; font-weight: 700; }
.article-card h3 { font-size: 1.5rem; color: var(--color-oak); margin-bottom: 1rem; line-height: 1.3; }
.article-card p { font-size: 0.95rem; color: var(--color-slate); line-height: 1.7; margin-bottom: 1.8rem; flex-grow: 1;
}
.pagination { display: flex; justify-content: center; margin-top: 5rem; font-family: var(--font-ui); color:
var(--color-slate); font-size: 0.9rem; letter-spacing: 0.05em; }

/* --- Pages Légales --- */
.page-inner-header {
background-attachment: fixed;
background-image: linear-gradient(rgba(27, 50, 41, 0.9), rgba(27, 50, 41, 0.9)),
url('https://images.unsplash.com/photo-1548013146-72479768bada?w=1200&q=80');
background-size: cover; background-position: center; padding: 10rem 1.5rem 5rem; text-align: center;
}
.page-inner-header h1 { color: var(--color-parchment); margin-bottom: 0.5rem;}
.page-inner-header p { color: rgba(245,239,227,0.7); font-style: italic; font-size: 1.1rem; margin-top: 0.5rem; }
.page-inner { padding-top: 4rem; padding-bottom: 5rem; min-height: 80vh; }
.page-inner .container { max-width: 820px; }
.page-updated { font-family: var(--font-ui); font-size: 0.78rem; color: var(--color-warm-gray); letter-spacing: 0.08em;
margin-bottom: 3rem; display: block; border-bottom: 1px solid var(--color-parchment-2); padding-bottom: 1rem; }
.legal-section { margin-bottom: 3.5rem; }
.legal-section h2 { font-variant: small-caps; letter-spacing: 1px; font-size: 1.6rem; color: var(--color-oak);
margin-bottom: 1.2rem; }
.legal-section h3 { font-size: 1rem; color: var(--color-forest); font-family: var(--font-ui); font-weight: 700;
text-transform: uppercase; letter-spacing: 0.05em; margin: 1.5rem 0 0.8rem; }
.legal-section p { font-size: 0.95rem; color: rgba(30, 28, 24, 0.9); line-height: 1.9; text-align: justify; }
.legal-section ul { margin-bottom: 1.5rem; padding-left: 1.2rem; }
.legal-section li { font-size: 0.95rem; color: rgba(30, 28, 24, 0.9); line-height: 1.75; margin-bottom: 0.6rem;
position: relative; list-style: none; padding-left: 1.5rem; }
.legal-section li::before { content: '•'; position: absolute; left: 0; color: var(--color-gold); font-weight: bold; }
.legal-section a { color: var(--color-forest); text-decoration: underline; font-weight: 600; }
.legal-section a:hover { color: var(--color-gold); }


/* ============================================================
08. ÉLÉMENTS D'INTERFACE
============================================================ */

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(10, 8, 5, 0.94); align-items:
center; justify-content: center; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 0
60px rgba(0,0,0,0.5); animation: lbFade 0.25s ease; }
@keyframes lbFade { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.lb-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; background:
rgba(245,239,227,0.1); border: none; border-radius: 50%; color: white; font-size: 1.4rem; cursor: pointer; display:
flex; align-items: center; justify-content: center; transition: background var(--transition); }
.lb-close:hover { background: rgba(245,239,227,0.2); }

/* Back to top */
#back-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: var(--color-forest);
color: var(--color-parchment); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center;
justify-content: center; font-size: 1.1rem; box-shadow: var(--shadow-card); opacity: 0; pointer-events: none;
transition: opacity var(--transition), background var(--transition); z-index: 900; }
#back-top.visible { opacity: 1; pointer-events: all; }
#back-top:hover { background: var(--color-gold); }

/* Animations scroll-reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }


/* ============================================================
09. SUPPORT GHOST (KOENIG)
============================================================ */
.kg-card { margin: 2.5rem 0; }
.kg-card img { border-radius: var(--radius); margin: auto; }
.kg-width-wide { position: relative; width: 80vw; min-width: 100%; margin-left: calc(50% - 40vw); margin-right: calc(50%
- 40vw); }
.kg-width-full { position: relative; width: 100vw; min-width: 100%; margin-left: calc(50% - 50vw); margin-right:
calc(50% - 50vw); }
figcaption { text-align: center; font-family: var(--font-ui); font-size: 0.8rem; color: var(--color-warm-gray);
margin-top: 0.8rem; font-style: italic; }

body:not(.home-template) #header { background: rgba(30, 28, 24, 0.96); backdrop-filter: blur(8px); position: sticky;
box-shadow: 0 2px 24px rgba(0,0,0,0.22); }
body:not(.home-template) main { padding-top: 2rem; min-height: 80vh; }
.template-home #header { background: transparent; }
.template-home #hero { display: flex; }
.template-home .nav-desktop a { color: rgba(245,239,227,0.85); }


/* ============================================================
10. RESPONSIVE GLOBAL MOBILE
============================================================ */
@media (max-width: 900px) {
.nav-desktop { display: none; }
.burger { display: flex; }
.presentation-grid, .eglise-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
.eglise-imgs { order: -1; }
.footer-grid { grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
.presentation-text p:first-of-type::first-letter { font-size: 3.5rem; }
.btn-primary { box-shadow: 3px 3px 0px var(--color-stone); }
}

@media (max-width: 580px) {
:root { --section-pad: 3.5rem 1rem; }
.hero-cta { flex-direction: column; align-items: center; }
.footer-grid { grid-template-columns: 1fr; }
.footer-bottom { flex-direction: column; text-align: center; }
.contact-form-wrap { padding: 1.5rem; }
}