/* ==========================================================
   CMCI Picardie — feuille de style principale
   ========================================================== */
:root {
  --navy: #0f1d3a;
  --navy-2: #1a2c55;
  --blue: #2c4a8a;      /* bleu d'accent sur fond clair */
  --sky: #c9d7f2;       /* bleu très clair d'accent sur fond marine */
  --mist: #e8eef9;      /* fond bleuté clair */
  --sun: #f6b93b;       /* jaune doré : la touche chaleureuse */
  --sun-dark: #e09e1c;
  --sun-soft: #fff1cf;
  --ink: #1b1b1f;
  --muted: #5c6070;
  --line: #e6e3dc;
  --paper: #fbf9f5;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 29, 58, .10);
  --font-title: "Epilogue", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .6em; overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--navy); color: #e9ecf5; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8em;
}
.section--dark .eyebrow, .page-hero .eyebrow { color: var(--sun); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.section--dark .lead { color: #b9c1d8; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--mist); }
.btn--sun { background: var(--sun); color: var(--navy); }
.btn--sun:hover { background: var(--sun-dark); }
.btn--outline { border-color: currentColor; color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled, .header--solid { background: rgba(15, 29, 58, .96); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 96px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo img { height: 74px; width: auto; }
@media (max-width: 560px) { .logo img { height: 60px; } }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .9; white-space: nowrap; }
.nav a:hover { opacity: 1; color: var(--sun); }
.nav .btn { padding: .6em 1.2em; font-size: .9rem; }
.nav .btn--light, .nav .btn--sun { color: var(--navy); opacity: 1; }
.nav .btn--light:hover, .nav .btn--sun:hover { color: var(--navy); }
.burger { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }

@media (max-width: 1100px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 96px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 24px;
    transform: translateY(-120%); transition: transform .3s;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- Hero / carrousel ---------- */
.hero { position: relative; min-height: 100svh; color: var(--white); overflow: hidden; background: var(--navy); display: grid; }
/* Les diapositives s'empilent dans la même cellule : le bandeau prend la hauteur de la plus haute */
.slide {
  grid-area: 1 / 1; position: relative;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
  padding: 130px 0 90px;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
/* Photo de fond + voile marine à gauche pour garder le texte lisible */
.slide__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.slide--1 .slide__bg {
  background-image:
    linear-gradient(90deg, rgba(15,29,58,.92) 0%, rgba(15,29,58,.7) 45%, rgba(15,29,58,.35) 100%),
    url("../img/carrousel/js.jpeg");
  background-position: center 30%;
}
.slide--2 .slide__bg {
  background-image:
    linear-gradient(90deg, rgba(15,29,58,.92) 0%, rgba(15,29,58,.7) 45%, rgba(15,29,58,.35) 100%),
    url("../img/carrousel/enseignement.jpeg");
  background-position: center 65%;
}
.slide--3 .slide__bg {
  background-image:
    linear-gradient(90deg, rgba(15,29,58,.92) 0%, rgba(15,29,58,.7) 45%, rgba(15,29,58,.35) 100%),
    url("../img/carrousel/assemblee.jpeg");
  background-position: center 40%;
}
/* Touches « coups de pinceau » */
.slide__bg::after {
  content: ""; position: absolute; right: -8%; top: 18%;
  width: 55%; height: 120px; background: var(--sun);
  transform: rotate(-8deg); opacity: .14; border-radius: 60px 10px 80px 20px;
  filter: blur(2px);
}
.hero__tag {
  display: inline-block; background: var(--sun); color: var(--navy);
  font-family: var(--font-title); font-weight: 700; font-size: .85rem;
  padding: .4em 1em; border-radius: 6px; transform: rotate(-2deg);
  margin-bottom: 1.2em; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); font-weight: 800; max-width: 900px; color: var(--white); }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 640px; color: #d6dcec; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8em; }

.hero__dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero__dots button {
  width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s, background .3s;
}
.hero__dots button.is-active { width: 34px; background: var(--sun); }
.hero__arrow {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: var(--white); font-size: 1.4rem; cursor: pointer;
}
.hero__arrow:hover { background: rgba(255,255,255,.25); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }
@media (max-width: 700px) { .hero__arrow { display: none; } }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.intro__visual {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  overflow: hidden; display: grid; place-items: center; color: var(--white);
  box-shadow: var(--shadow);
}
.intro__visual::before {
  content: ""; position: absolute; width: 140%; height: 90px; background: var(--sun);
  transform: rotate(-12deg); top: 62%; opacity: .95;
}
.intro__quote { position: relative; padding: 32px; font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; text-align: center; }
.intro__quote small { display: block; font-size: .9rem; color: var(--sun); margin-top: 12px; font-weight: 600; }
.goal {
  margin-top: 28px; padding: 22px 24px; border-left: 4px solid var(--sun);
  background: var(--white); border-radius: 0 12px 12px 0; box-shadow: var(--shadow);
}
.goal strong { color: var(--blue); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro__visual { aspect-ratio: 16/10; } }

/* ---------- Ministère ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__num { font-family: var(--font-title); font-weight: 800; font-size: 2.6rem; color: var(--sun-dark); line-height: 1; }
.card { border-top: 4px solid var(--sun); }
.card h3 { text-transform: capitalize; font-size: 1.3rem; margin-top: .6em; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 1000px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards4 { grid-template-columns: 1fr; } }

/* ---------- Assemblées ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.city {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 18px 20px;
}
.city strong { display: block; font-family: var(--font-title); color: var(--white); font-size: 1.1rem; }
.city span { font-size: .88rem; color: #aab3cc; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.date { font-size: .82rem; font-weight: 600; color: var(--blue); }

/* ---------- Littérature : carrousel « Le Chemin Chrétien » ---------- */
.books-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.books-head .lead strong { color: var(--navy); }
.books-nav { display: flex; align-items: center; gap: 10px; }
.books-count { font-family: var(--font-title); font-weight: 700; color: var(--muted); margin-right: 6px; min-width: 52px; text-align: right; }
.books-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--navy);
  background: var(--white); color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.books-arrow:hover { background: var(--navy); color: var(--white); }
.books-carousel { margin-top: 40px; position: relative; }
/* Fondu sur les bords pour suggérer le défilement */
.books-carousel::before, .books-carousel::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(12px, calc((100% - 1180px) / 2), 90px); z-index: 2; pointer-events: none;
}
.books-carousel::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.books-carousel::after { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }
.books-track {
  list-style: none; margin: 0; display: flex; gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 14px max(16px, calc((100% - 1180px) / 2)) 26px;
  scroll-padding-inline: max(16px, calc((100% - 1180px) / 2));
  scrollbar-width: none;
}
.books-track::-webkit-scrollbar { display: none; }
.books-track:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.book { flex: 0 0 200px; scroll-snap-align: start; }
.book__cover {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px 10px 10px 4px;
  box-shadow: 0 14px 28px rgba(15,29,58,.22), inset 0 0 0 1px rgba(0,0,0,.05);
  transition: transform .3s, box-shadow .3s;
}
.book:hover .book__cover { transform: translateY(-8px); box-shadow: 0 22px 36px rgba(15,29,58,.28); }
.book__tome {
  display: inline-block; margin-top: 16px; padding: .2em .7em; border-radius: 999px;
  background: var(--sun-soft); color: var(--navy); font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.book__title { font-size: 1rem; margin: 8px 0 0; line-height: 1.3; }
.books-cta { margin-top: 26px; }
@media (max-width: 560px) {
  .book { flex-basis: 62vw; }
  .books-nav { width: 100%; justify-content: flex-end; }
}

/* ---------- Étude en ligne du Chemin de la Vie ---------- */
.zoom {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 60px); align-items: center;
  background: linear-gradient(135deg, var(--sun-soft), #ffd77e); color: var(--navy);
  border-radius: 28px; padding: clamp(28px, 5vw, 60px);
}
.zoom h2 { color: var(--navy); }
.zoom .eyebrow { color: var(--navy); opacity: .7; }
/* Le flyer, posé comme une affiche légèrement inclinée */
.zoom__flyer { margin: 0; transform: rotate(-2deg); transition: transform .4s ease; }
.zoom__flyer img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  border: 8px solid var(--white); box-shadow: 0 18px 40px rgba(15, 29, 58, .25);
}
.zoom:hover .zoom__flyer { transform: rotate(0deg) scale(1.02); }
.zoom__info { display: grid; gap: 14px; background: var(--navy); color: var(--white); border-radius: 20px; padding: 22px 24px; margin: 24px 0 28px; }
.zoom__info div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; }
.zoom__info dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sun); font-weight: 700; }
.zoom__info dd { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: 1rem; }
@media (max-width: 860px) {
  .zoom { grid-template-columns: 1fr; }
  .zoom__flyer { transform: none; max-width: 520px; margin: 0 auto; }
  .zoom:hover .zoom__flyer { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .zoom__flyer, .zoom:hover .zoom__flyer { transform: none; transition: none; } }

/* ---------- Newsletters ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 44px; }
.news-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.news-item h3 { font-size: 1.3rem; margin-bottom: .2em; }
.news-item .date { display: block; margin-bottom: 1em; }
.news-item p { color: var(--muted); font-size: .95rem; flex: 1; }
.news-item blockquote { margin: 0 0 1em; padding-left: 14px; border-left: 3px solid var(--sun); font-style: italic; font-size: .92rem; color: var(--ink); }
.link-more { font-weight: 700; color: var(--blue); text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* ---------- Cultes ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.service {
  border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3;
  background: linear-gradient(160deg, #22356a, #0f1d3a); display: flex; align-items: end; padding: 22px;
  color: var(--white); text-decoration: none;
}
.service::before {
  content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: var(--navy); display: grid; place-items: center;
  font-size: 1.3rem; padding-left: 4px; transition: transform .25s;
}
.service:hover::before { transform: translate(-50%, -60%) scale(1.1); }
.service strong { font-family: var(--font-title); font-size: 1.15rem; }
.refresh {
  margin-top: 40px; border-radius: 24px; padding: 36px; display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.refresh h3 { margin: 0; font-size: 1.5rem; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.footer { background: #0a1429; color: #b9c1d8; padding: 72px 0 28px; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer h4 { color: var(--white); font-size: 1.1rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--sun); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__bottom {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: var(--white);
}
.socials a:hover { background: var(--sun); color: var(--navy); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Pages internes ---------- */
.page-hero {
  background:
    radial-gradient(circle at 85% 30%, rgba(70,110,190,.5), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(246,185,59,.25), transparent 35%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white); padding: 170px 0 70px;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--white); }
.page-hero p { color: #d6dcec; max-width: 640px; font-size: 1.1rem; }

.form-wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .8em 1em; border: 1px solid #d5d2ca; border-radius: 10px; background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sun); border-color: var(--sun-dark); background: var(--white); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.check input { margin-top: 4px; }
.form--tally iframe { display: block; border: 0; }
.aside-card { background: var(--navy); color: #d6dcec; border-radius: var(--radius); padding: 30px; margin-bottom: 20px; }
.aside-card h3 { color: var(--white); }
.aside-card a { color: var(--sun); text-decoration: none; }
.aside-card p { margin: 0 0 .6em; }
@media (max-width: 860px) { .form-wrap, .form__row { grid-template-columns: 1fr; } }

.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide { transition: none; }
  html { scroll-behavior: auto; }
}

/* Logo du pied de page */
.footer__logo { height: 110px; width: auto; margin-bottom: 20px; }
