/*
Theme Name: Foi Chrétienne
Theme URI: https://foichretienne.fr
Author: Foi & Motivation Chrétienne
Description: Thème chrétien minimaliste et élégant
Version: 1.0
Text Domain: foichretienne
*/

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

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1a2744;
  --navy-light: #243460;
  --gold:    #c9a84c;
  --gold-light: #e2c97e;
  --cream:   #faf8f4;
  --white:   #ffffff;
  --gray:    #6b7280;
  --gray-light: #f3f4f6;
  --text:    #1f2937;
  --radius:  8px;
  --shadow:  0 2px 16px rgba(26,39,68,.10);
  --shadow-hover: 0 8px 32px rgba(26,39,68,.18);
  --transition: .25s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1,h2,h3,h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--navy);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}

.site-logo .logo-sub {
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 2px; align-items: center; }

.site-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}

.site-nav a:hover, .site-nav a.active {
  color: var(--navy);
  background: var(--gray-light);
}

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--navy-light) !important; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2d4a8a 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.2);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero h1 em { color: var(--gold-light); font-style: normal; }

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-1px); }

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

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  aspect-ratio: 4/3;
}

.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ===== VERSE BANNER ===== */
.verse-banner {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 28px 0;
  text-align: center;
}

.verse-banner blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
}

.verse-banner cite {
  display: block;
  margin-top: 8px;
  font-size: .85rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
  letter-spacing: .05em;
}

/* ===== SECTION GÉNÉRIQUE ===== */
.section { padding: 72px 0; }
.section--gray { background: var(--gray-light); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.section-header p { color: var(--gray); margin-top: 12px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ===== ARTICLE CARDS ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover .card-image img { transform: scale(1.05); }

.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.card-category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--gold); }

.card-excerpt {
  font-size: .875rem;
  color: var(--gray);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--gray);
  border-top: 1px solid var(--gray-light);
  padding-top: 14px;
  margin-top: auto;
}

.card-read-more {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-read-more:hover { color: var(--gold); }

/* ===== NEWSLETTER ===== */
.newsletter { padding: 64px 0; }

.newsletter-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 16px;
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-box h2 { color: var(--white); font-size: 1.75rem; margin-bottom: 10px; }
.newsletter-box p { color: rgba(255,255,255,.75); font-size: .95rem; }

.newsletter-form { display: flex; gap: 10px; }

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: none;
  font-size: .9rem;
  background: rgba(255,255,255,.12);
  color: var(--white);
  outline: 2px solid rgba(255,255,255,.2);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline-color: var(--gold); background: rgba(255,255,255,.18); }

/* ===== SINGLE POST ===== */
.post-hero {
  background: var(--navy);
  padding: 52px 0 40px;
  color: var(--white);
}

.post-hero .post-category {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.post-hero h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.post-hero .post-meta {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

.post-featured-image {
  max-height: 460px;
  overflow: hidden;
}
.post-featured-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.post-content-area { padding: 56px 0; }

.entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #374151;
}

.entry-content h2,
.entry-content h3 {
  margin: 2rem 0 1rem;
  color: var(--navy);
}

.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.25rem; }

.entry-content p { margin-bottom: 1.4rem; }

.entry-content blockquote {
  border-left: 4px solid var(--gold);
  margin: 2rem 0;
  padding: 16px 28px;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
}

.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.entry-content li { margin-bottom: .5rem; }

/* ===== CATEGORIES STRIP ===== */
.categories-strip { padding: 48px 0; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.category-card:hover img { transform: scale(1.08); }

.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,39,68,.85) 0%, rgba(26,39,68,.2) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.category-card-overlay span {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 52px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo-main { color: var(--white); font-size: 1.15rem; }
.footer-brand .logo-sub { color: var(--gold); }

.footer-brand p {
  margin-top: 14px;
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
}

.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer-verse {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-light);
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4080 100%);
  padding: 80px 0;
  text-align: center;
}
.page-hero--small { padding: 56px 0; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.page-hero .card-category { display: inline-block; margin-bottom: 12px; }

/* ===== BLOG LAYOUT ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.blog-main { min-width: 0; }
.blog-sidebar { display: flex; flex-direction: column; gap: 32px; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.widget-categories { list-style: none; }
.widget-categories li { border-bottom: 1px solid var(--cream); }
.widget-categories li:last-child { border-bottom: none; }
.widget-categories a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--text);
  font-size: .9rem;
}
.widget-categories a:hover { color: var(--gold); }
.widget-categories span { color: var(--text-light); }

.sidebar-verse { background: var(--cream) !important; border-left: 4px solid var(--gold); }
.sidebar-blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.7;
}
.sidebar-blockquote cite {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sidebar-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: .9rem;
}
.sidebar-form input:focus { outline: none; border-color: var(--gold); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--white);
  border: 1.5px solid #e5e7eb;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination .prev, .pagination .next { width: auto; padding: 0 16px; }

.no-posts { text-align: center; padding: 80px 0; color: var(--text-light); font-size: 1.1rem; }

/* ===== SINGLE POST ===== */
.single-hero {
  position: relative;
  max-height: 500px;
  overflow: hidden;
}
.single-hero img { width: 100%; height: 500px; object-fit: cover; display: block; }
.single-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,39,68,.9) 0%, rgba(26,39,68,.2) 60%, transparent 100%);
}
.single-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 20px;
}
.single-hero-content h1 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin: 12px 0; }
.single-meta { font-size: .85rem; color: rgba(255,255,255,.7); display: flex; gap: 16px; margin-top: 8px; }
.single-meta span::before { content: ''; }

.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
}
.single-content { min-width: 0; }

.entry-tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.entry-tags > span { font-size: .85rem; color: var(--text-light); font-weight: 600; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--cream);
  border-radius: 20px;
  font-size: .8rem;
  color: var(--navy);
  font-weight: 600;
}
.tag:hover { background: var(--navy); color: var(--white); }

.entry-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--cream);
}
.entry-nav-next { text-align: right; }
.nav-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 6px; }
.entry-nav a { font-size: .95rem; color: var(--navy); font-weight: 600; line-height: 1.4; }
.entry-nav a:hover { color: var(--gold-dark); }

/* ===== PAGE ABOUT ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
.about-content h2 { color: var(--navy); margin: 40px 0 16px; font-size: 1.5rem; }
.about-content h2:first-child { margin-top: 0; }
.about-content p { color: #374151; line-height: 1.8; margin-bottom: 16px; }
.about-verse {
  border-left: 4px solid var(--gold);
  padding: 20px 28px;
  background: var(--cream);
  border-radius: 0 12px 12px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  margin: 32px 0;
}
.about-verse cite { display: block; font-style: normal; font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 700; color: var(--gold); margin-top: 10px; text-transform: uppercase; letter-spacing: .08em; }
.about-list { list-style: none; padding: 0; }
.about-list li { padding: 10px 0; border-bottom: 1px solid var(--cream); padding-left: 24px; position: relative; color: #374151; }
.about-list li::before { content: '✝'; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: 11px; }

.about-sidebar { display: flex; flex-direction: column; gap: 20px; }
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.about-icon { font-size: 2rem; margin-bottom: 12px; }
.about-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.about-card p { color: var(--text-light); font-size: .875rem; line-height: 1.6; }

/* ===== PAGE CONTACT ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
.contact-form-wrap h2 { color: var(--navy); margin-bottom: 12px; }
.contact-form-wrap > p { color: var(--text-light); margin-bottom: 32px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { resize: vertical; }

.contact-success {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 20px 24px;
  color: #15803d;
  font-weight: 600;
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-card h3 { color: var(--navy); font-size: 1rem; margin: 10px 0 8px; }
.contact-card p { color: var(--text-light); font-size: .875rem; line-height: 1.6; }

/* ===== PAGE CONTENT ===== */
.page-content {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #374151;
}
.page-content h2, .page-content h3 { color: var(--navy); margin: 2rem 0 1rem; }

/* ===== PAGE ABOUT ===== */
.about-hero { background: var(--cream); padding: 64px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid img { border-radius: 12px; box-shadow: var(--shadow-hover); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .newsletter-box { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(3,1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-sidebar { flex-direction: row; flex-wrap: wrap; }
  .about-card { flex: 1 1 200px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2,1fr); }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .entry-nav { grid-template-columns: 1fr; }
  .entry-nav-next { text-align: left; }
}
