/* Les Petits Pas — feuille statique, proche du thème d'origine */

:root {
  --red: #cd270f;
  --red-deep: #89050b;
  --gold: #e8c774;
  --ink: #5c5c5c;
  --muted: #8a8a8a;
  --line: #e1e1e1;
  --yellow: #f6d56b;
  --header: 90px;
  --header-sticky: 46px;
  --wrap: 1110px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: var(--header);
  color: var(--ink);
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--red-deep); }
button, input, textarea { font-family: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 6px 10px;
  z-index: 100;
}
.skip:focus { top: 8px; }

/* En-tête */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  height: var(--header);
  border-bottom: 1px solid #f2f2f2;
  --logo-h: 85px;
  --nav-lh: 88px;
}
.header-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { height: var(--logo-h); width: auto; display: block; }
.site-header nav ul {
  display: flex;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header nav a {
  position: relative;
  display: inline-block;
  color: var(--red-deep);
  text-decoration: none;
  font-size: 13px;
  line-height: var(--nav-lh);
  padding: 0;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
}
.site-header nav a:hover::after,
.site-header nav a.is-current::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  height: 2px;
  background: var(--red-deep);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Bandeau */
.hero {
  position: relative;
  background: var(--yellow);
  line-height: 0;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
}
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  color: var(--red);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chev {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex: none;
}
.scroll-down .chev {
  width: 14px;
  height: 14px;
  border-width: 2px;
  transform: rotate(45deg) translateY(-3px);
}

/* Sections */
.section { padding: 64px 22px 36px; }
.section-tight { padding-top: 28px; padding-bottom: 28px; }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.section-heading { text-align: center; margin-bottom: 8px; }
.section-heading h2,
.archive-page h1,
.section-heading h1 {
  margin: 0;
  color: var(--red);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.heading-rule {
  display: block;
  width: 92px;
  height: 1px;
  margin: 16px auto 26px;
  background: #d7d7d7;
  position: relative;
}
.heading-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.lead {
  color: #666;
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}
.lead p { margin: 0 0 0.85em; }
.lead strong { color: var(--red); font-weight: 700; }

section[id], .hero { scroll-margin-top: var(--header-sticky); }
.prose {
  color: #6a6a6a;
  font-size: 16.5px;
  line-height: 1.75;
}
.prose p { margin: 0 0 1em; }
.prose em { font-style: italic; }

.section-next {
  display: flex;
  justify-content: center;
  padding: 10px 22px 34px;
}
.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1e1e1;
  background: #fcfcfc;
  color: #666;
  text-decoration: none;
  padding: 14px 28px 12px;
  border-radius: 3px;
  font-size: 13px;
}
.btn-quiet:hover { background: #f1f1f1; color: #555; }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
  margin-top: 18px;
}
.gallery a {
  display: block;
  background: #f3f3f3;
}
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 495 / 400;
  object-fit: cover;
}

/* Actualités */
.news-viewport { overflow: hidden; }
.news-track {
  display: flex;
  width: 100%;
  transition: transform .45s ease;
}
.news-card {
  flex: 0 0 33.333%;
  padding: 0 14px;
  color: inherit;
  text-decoration: none;
}
.news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 495 / 400;
  object-fit: cover;
  background: #f6f6f6;
}
.news-card h3,
.news-card h2 {
  margin: 12px 0 2px;
  font-size: 16px;
  color: #222;
}
.news-date { margin: 0; color: #9a9a9a; font-size: 14px; }
.news-excerpt { margin: 8px 0 0; color: #777; font-size: 15px; }
.news-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.news-controls button {
  background: none;
  border: 0;
  color: #888;
  cursor: pointer;
  font-size: 15px;
  padding: 6px;
}
.news-controls button:hover { color: var(--red); }

.band {
  height: 230px;
  background-color: var(--yellow);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left top;
  background-attachment: fixed;
}
.band-actualites { background-image: url("../images/fonds/bandeau-actualites.webp"); }
.band-temoignages { height: 240px; background-image: url("../images/fonds/bandeau-temoignages.webp"); }

/* Témoignages */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.quote {
  margin: 0;
  padding: 8px 18px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 16px;
  line-height: 1.55;
  font-style: normal;
}
.quote-blue { color: #598ed6; }
.quote-purple { color: #ae60e0; border-left: 1px dotted #ddd; }
.quote-teal { color: #6fbbba; }
.quote-pink { color: #e869b1; border-left: 1px dotted #ddd; }
.alt { background: #fcfcfc; }

/* Infos */
.infos-intro { color: var(--red); }
.infos-intro p { margin: 0 0 .7em; }
.calendar-link { display: block; margin: 18px auto; max-width: 848px; }
.calendar-link img { display: block; width: 100%; }
.note { color: #777; }
.places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.places h3 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  color: #444;
}
.places p { text-align: center; margin: 0 0 .8em; }
.places iframe { width: 100%; height: 340px; border: 0; }

.partners { margin: 10px auto 0; display: block; width: min(100%, 980px); }

.facebook-box { display: flex; justify-content: center; }
.facebook-box iframe { max-width: 100%; background: #fff; }
.facebook-link { text-align: center; margin-top: 8px; }

/* Contact */
.contact-section {
  background: #f3c84b url("../images/fonds/fond-contact.webp") center / cover no-repeat;
  color: #fff;
  padding-bottom: 72px;
}
.contact-section .section-heading h2 { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.contact-section .heading-rule { background: rgba(255,255,255,.7); }
.contact-section .heading-rule::after { background: transparent; border-color: #fff; }
.contact-form { max-width: 640px; margin: 0 auto; }
.contact-form p { margin: 0 0 14px; }
.contact-form label {
  display: block;
  margin-bottom: 4px;
  color: #666;
  font-size: 12px;
  line-height: 1.65;
  text-shadow: none;
}
.req { text-decoration: none; color: var(--red); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  padding: 10px 12px;
  font-size: 16px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.field-half { max-width: 48%; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { width: 13px; height: 13px; margin-top: 4px; flex: none; }
.check label { margin: 0; padding: 0; background: none; }
.h-captcha { margin: 8px 0 14px; }
.hp { position: absolute; left: -9999px; }
.btn-send {
  background: #fff;
  color: var(--red);
  border: 0;
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
}
.btn-send:disabled { opacity: .6; cursor: progress; }
.form-status { min-height: 1.4em; font-weight: 700; color: var(--ink); }

/* Pied de page */
.site-footer {
  background: #fff;
  border-top: 1px solid #eee;
  color: #9a9a9a;
  padding: 22px;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer a { color: var(--red-deep); text-decoration: none; font-size: 14px; }
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #aaa;
  cursor: pointer;
  display: none;
  z-index: 30;
}
.to-top.is-visible { display: block; }

/* Fenêtre flash */
.popup[hidden] { display: none; }
.popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(40, 30, 10, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.popup.is-in {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility 0s;
}
.popup-dialog {
  position: relative;
  max-width: 680px;
  width: 100%;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(18px) scale(.97);
}
.popup.is-in .popup-dialog {
  animation: popup-in .5s ease forwards;
}
@keyframes popup-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.popup-dialog img { display: block; width: 100%; }
.popup-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #444;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Visionneuse */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
}
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}
.lightbox-close { top: 12px; right: 16px; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* Pages actualité */
.article-page, .archive-page { padding: 48px 22px 72px; }
.article { max-width: 820px; margin: 0 auto; }
.article-kicker { margin: 0 0 8px; }
.article-kicker a { color: var(--red); text-decoration: none; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.article h1 { margin: 0 0 6px; color: #222; font-size: 34px; line-height: 1.25; }
.article-date { margin: 0 0 18px; color: #9a9a9a; }
.article-cover { display: block; width: 100%; margin: 0 0 22px; }
.article-body { color: #555; font-size: 17px; }
.article-body p, .article-body div { margin: 0 0 .7em; }
.article-body video, .wp-video { width: 100% !important; max-width: 640px; height: auto; }
.article-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.article-nav .next { text-align: right; }
.archive-page .news-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 18px;
}
.archive-page .news-card { flex: none; padding: 0; }


@media (max-width: 860px) {
  :root { --header: 64px; --header-sticky: 64px; }
  .site-header { --logo-h: 44px; --nav-lh: 1.45; }
  .nav-toggle { display: block; }
  .site-header nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 8px 22px 16px;
  }
  .site-header nav.is-open { display: block; }
  .site-header nav ul { flex-direction: column; gap: 0; }
  .site-header nav a { padding: 10px 0; }
  .gallery, .places, .quotes, .archive-page .news-grid { grid-template-columns: 1fr; }
  .band { background-attachment: scroll; background-position: center top; }
  .quote-purple, .quote-pink { border-left: 0; }
  .news-card { flex-basis: 100%; }
  .field-half { max-width: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .news-track { transition: none; }
  .popup, .popup.is-in { transition: none; }
  .popup.is-in .popup-dialog { animation: none; opacity: 1; transform: none; }
  .band { background-attachment: scroll; }
}
