:root {
  --orange: #f97316;
  --orange-light: #ffb000;
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #fff4e8;
  --text-primary: #171717;
  --text-secondary: rgba(23, 23, 23, 0.72);
  --text-link: #8a3900;
  --accent-text: #8a3900;
  --border: rgba(23, 23, 23, 0.16);
  --nav-bg: #ffffff;
  --nav-text: #3b2412;
  --input-bg: #ffffff;
  --footer-bg: #080808;
  --footer-text: rgba(255, 255, 255, 0.82);
  --focus-ring: rgba(249, 115, 22, 0.42);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  --radius: 8px;
  color-scheme: light;
}

[data-theme="dark"] {
  --page-bg: #111111;
  --surface: #1c1c1c;
  --surface-muted: #171717;
  --text-primary: #f5f5f5;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-link: #ffb000;
  --accent-text: #ffb000;
  --border: rgba(255, 255, 255, 0.16);
  --nav-bg: #171717;
  --nav-text: #f5f5f5;
  --input-bg: #222222;
  --footer-bg: #080808;
  --footer-text: rgba(255, 255, 255, 0.82);
  --focus-ring: rgba(255, 176, 0, 0.56);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--page-bg);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  transition: color 180ms ease, background-color 180ms ease;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}



.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.navbar {
  min-height: 76px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1vw, 16px);
  overflow: visible;
}

.brand {
  display: inline-grid;
  grid-template-areas: "logo";
  flex-shrink: 0;
}

.brand .logo {
  grid-area: logo;
  width: 150px;
  max-height: 100px;
  object-fit: contain;
}

.logo.logo-dark {
  display: none;
}

[data-theme="dark"] .logo.logo-light {
  display: none;
}

[data-theme="dark"] .logo.logo-dark {
  display: block;
}

.nav-menu {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1px, 0.25vw, 4px);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-menu a {
  min-width: 0;
  padding: 10px clamp(3px, 0.45vw, 8px);
  white-space: nowrap;
  font-size: clamp(0.8rem, 0.9vw, 1rem);
}

.nav-menu a,
.theme-toggle {
  min-height: 40px;
  padding: 10px clamp(3px, 0.45vw, 8px);
  color: var(--nav-text);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: clamp(0.8rem, 0.9vw, 1rem);
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(4px, 0.45vw, 8px);
}

.nav-controls .language-control {
  flex: 0 0 64px;
}

.nav-menu a:hover,
.nav-menu a.active,
.theme-toggle:hover {
  background: rgba(249, 115, 22, 0.18);
}

.language-control select {
  display: block;
  width: 64px;
  height: 40px;
  min-height: 40px;
  padding: 7px 6px;
  color: var(--nav-text);
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.shop-nav-button {
  min-height: 40px;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  white-space: nowrap;
  color: #171717;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.shop-nav-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.shop-cart-count {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  color: #ffffff;
  background: #171717;
  border-radius: 999px;
  font-size: 0.75rem;
}

.shop-nav-button:focus-visible,
.language-control select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.theme-toggle {
  width: 44px;
  min-width: 44px;
  flex-shrink: 0;
  padding: 8px;
  display: grid;
  place-items: center;
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.support-nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px max(16px, calc((100% - 1120px) / 2));
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.support-nav-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 14px;
  color: var(--text-link);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.support-nav-link:hover,
.support-nav-link:focus-visible {
  background: rgba(249, 115, 22, 0.2);
  border-color: var(--orange);
  transform: translateY(-1px);
}

.support-nav-link[aria-current="page"] {
  background: rgba(249, 115, 22, 0.17);
  border-color: rgba(249, 115, 22, 0.42);
}

.support-nav-link i {
  color: var(--orange);
}

.support-nav-note {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
}

.nav-toggle {
  flex-shrink: 0;
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--nav-text);
}



.hero,
.page-hero {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62), rgba(249, 115, 22, 0.22)),
    var(--page-background, url("../images/jesus.jfif")) center / cover;
}

.page-home {
  --page-background: url("../images/jesus.jfif");
}

.page-about {
  --page-background: url("../images/A  propos.jfif");
}

.page-emissions {
  --page-background: url("../images/emmissions.jfif");
}

.page-emission {
  --page-background: url("../images/agneau.jfif");
}

.page-news {
  --page-background: url("../images/Acttualites.jfif");
}

.page-gallery {
  --page-background:url("../images/galerie2.png")
}

.page-donate {
  --page-background: url("../images/Don.jfif");
}

.page-partners {
  --page-background: url("../images/passover.jfif");
}

.page-contact {
  --page-background: url("../images/Contact.jfif");
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
}

.hero-content {
  padding: 88px 0 116px;
}

.hero h1 {
  max-width: 1000px;
  font-size: clamp(2.35rem, 6vw, 5.7rem);
}

.hero p:not(.eyebrow),
.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.page-hero {
  padding: 94px 0 74px;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--surface-muted);
  transition: background-color 180ms ease;
}

.section-carousel {
  padding: 72px 0 48px;
  color: #ffffff;
  background: #050505;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.split,
.cta-inner,
.donation-grid,
.contact-grid,
.detail-layout {
  display: grid;
  gap: 30px;
}

.split {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
}

.cta-inner {
  grid-template-columns: 1fr minmax(280px, 430px);
}

.donation-grid,
.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

/* Texte */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

h3 {
  font-size: 1.18rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section-carousel .eyebrow,
.cta .eyebrow {
  color: var(--orange-light);
}

.meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 10px 0;
}

.text-link {
  color: var(--text-link);
  font-weight: 800;
  border-bottom: 2px solid var(--orange);
}

.payment-methods {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.payment-methods legend {
  margin-bottom: 10px;
  font-weight: 800;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-method {
  min-width: 0;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  color: var(--text-primary);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.payment-method-logos {
  min-width: 0;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.payment-method-logos[hidden] {
  display: none;
}

.payment-method-logos img {
  display: block;
  width: auto;
  height: 28px;
  max-width: min(100%, 112px);
  object-fit: contain;
  flex: 0 1 auto;
}

.payment-method-logos img[hidden],
.payment-card-brands img[hidden] {
  display: none;
}

.payment-method > .payment-card-brands {
  min-height: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.payment-card-brands {
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-card-brands img {
  height: 24px;
  max-width: min(47%, 96px);
}

.payment-method small {
  color: var(--text-secondary);
}

.payment-security-note {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-align: center;
}

.payment-method:hover,
.payment-method.is-selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.donation-form {
  margin-top: 24px;
}

.donation-fieldset {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
}

.donation-fieldset legend {
  margin-bottom: 4px;
  font-weight: 800;
}

.donation-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.donation-amount {
  min-height: 46px;
  padding: 10px;
  color: var(--text-primary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.donation-amount:hover,
.donation-amount[aria-pressed="true"] {
  color: #000000;
  background: var(--orange-light);
  border-color: var(--orange);
}

.donation-submit {
  width: 100%;
}

.donation-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.donation-panel #retry-donation[hidden] {
  display: none;
}

.donation-message {
  min-height: 1.6em;
  margin: 0;
  color: var(--text-secondary);
}

.donation-message.is-error {
  color: #b42318;
}

.donor-fields {
  display: grid;
  gap: 8px;
}

.zelle-details {
  padding: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.zelle-details p {
  margin: 8px 0 0;
}

[hidden] {
  display: none !important;
}

[data-theme="dark"] .donation-message.is-error {
  color: #ff8a80;
}

.verse {
  padding-left: 18px;
  color: var(--text-secondary);
  border-left: 4px solid var(--orange);
  font-style: italic;
}

/* Boutons et formulaires */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #000000;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.28);
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--surface-muted);
  border-color: var(--border);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

form,
.filter-bar {
  display: grid;
  gap: 12px;
}

.filter-bar {
  grid-template-columns: minmax(220px, 1fr) 220px;
  margin-bottom: 28px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--orange);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* Cartes */

.card-grid,
.testimonial-grid,
.value-grid,
.team-grid,
.news-grid,
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.video-card,
.news-card,
.team-card,
.partner-card,
.value-card,
.donation-panel,
.contact-panel,
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card-body,
.news-card,
.team-card,
.partner-card,
.value-card,
.donation-panel,
.contact-panel,
.testimonial {
  padding: 24px;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge,
.category-badge {
  position: absolute;
  bottom: 14px;
  padding: 6px 10px;
  color: #000000;
  background: var(--orange-light);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.play-badge {
  left: 14px;
}

.category-badge {
  right: 14px;
  background: #ffffff;
}

.team-avatar,
.partner-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #000000;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 50%;
  font-weight: 900;
}

.partner-logo {
  width: 92px;
  border-radius: var(--radius);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.gallery-item figcaption {
  padding: 12px;
  color: var(--text-secondary);
  background: var(--surface);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.gallery-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 60px 24px 24px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.94);
}

.gallery-lightbox-content {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  max-height: 100%;
}

.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.gallery-lightbox-caption,
.gallery-lightbox-counter {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.gallery-lightbox-counter {
  font-size: 0.9rem;
}

.gallery-lightbox-close,
.gallery-lightbox-previous,
.gallery-lightbox-next {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
}

@media (max-width: 560px) {
  .gallery-lightbox {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    padding: 60px 12px 20px;
  }

  .gallery-lightbox-previous,
  .gallery-lightbox-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}



.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-layout aside .card-grid {
  grid-template-columns: 1fr;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.share-links a {
  padding: 8px 12px;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 800;
}

.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}

/* Carrousel d’accueil */

.home-carousel {
  position: relative;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000000;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 520ms ease;
  will-change: transform;
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  min-height: 390px;
  aspect-ratio: 16 / 7;
  display: grid;
  align-items: end;
  isolation: isolate;
  color: #ffffff;
  background: #000000;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.14)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 58%);
}

.carousel-slide img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-copy {
  width: min(620px, calc(100% - 112px));
  margin: 0 0 52px 52px;
}

.carousel-copy h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4rem);
}

.carousel-copy p:not(.eyebrow) {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  color: #000000;
  background: var(--orange-light);
}

.carousel-prev {
  left: 18px;
}

.carousel-next {
  right: 18px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.carousel-indicators button {
  width: 34px;
  height: 6px;
  padding: 0;
  background: rgba(255, 255, 255, 0.34);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.carousel-indicators button.active {
  background: var(--orange-light);
}

.home-carousel.is-static .carousel-arrow,
.home-carousel.is-static .carousel-indicators {
  display: none;
}

.news-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.news-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000000;
}

.news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cover-position, center 20%);
  transition: transform 420ms ease;
}

.news-card-media img.is-fallback {
  object-fit: contain;
  object-position: center;
  padding: 18px;
  background: #111111;
}

.carousel-slide img {
  object-position: var(--cover-position, center 20%);
}

.carousel-slide img.is-fallback {
  object-fit: contain;
  object-position: center;
  padding: 24px;
  background: #111111;
}

.news-card:hover .news-card-media img {
  transform: scale(1.04);
}

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

.news-card-content p:not(.eyebrow):not(.meta) {
  color: var(--text-secondary);
}

.news-card-content .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Appel à l’action et pied de page */

.cta {
  padding: 72px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #000000, #171717 68%, #f97316);
}

.cta h2 {
  color: #ffffff;
}

.site-footer {
  padding: 56px 0 24px;
  color: var(--footer-text);
  background: var(--footer-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
}

.footer-logo {
  display: block;
  width: auto;
  height: 60px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-grid > div:first-child p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.site-footer h3 {
  color: #ffffff;
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.site-footer .social-links a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border-radius: 50%;
}

.copyright {
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

/* Boutons fixes */

.back-to-top {
  position: fixed;
  right: 18px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #000000;
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.back-to-top {
  bottom: 24px;
  background: var(--orange-light);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Mise en page adaptable */

@media (min-width: 1024px) and (max-width: 1200px) {
  .shop-nav-button > span[data-i18n="shop.name"] {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  .nav-toggle {
    display: block;
    order: 2;
    width: 44px;
    height: 44px;
  }

  .nav-menu {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 51;
    display: none;
    width: 100%;
    min-width: 0;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 18px;
    background: var(--nav-bg);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }

  body.nav-open .nav-menu {
    display: flex;
  }

  .nav-menu a,
  .theme-toggle {
    text-align: left;
  }

  .nav-menu a {
    width: 100%;
    padding: 10px 11px;
    font-size: 1rem;
  }

  .nav-controls {
    order: 3;
  }

  .split,
  .cta-inner,
  .donation-grid,
  .contact-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .testimonial-grid,
  .value-grid,
  .team-grid,
  .news-grid,
  .partner-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .carousel-slide {
    min-height: 430px;
    aspect-ratio: 4 / 3;
  }

  .carousel-copy {
    width: min(600px, calc(100% - 88px));
    margin: 0 0 44px 44px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .navbar {
    gap: 5px;
  }

  .navbar .brand .logo {
    width: clamp(72px, 22vw, 100px);
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .nav-controls {
    gap: 4px;
  }

  .nav-controls .language-control {
    flex-basis: 56px;
  }

  .nav-controls .language-control select {
    width: 56px;
  }

  .nav-controls .theme-toggle {
    width: 40px;
    min-width: 40px;
  }

  .nav-controls .shop-nav-button > span[data-i18n="shop.name"] {
    display: none;
  }

  .support-nav {
    min-height: 46px;
    justify-content: flex-start;
    padding: 5px 11px;
  }

  .support-nav-note {
    display: none;
  }

  .support-nav-link {
    min-height: 34px;
    padding: 6px 12px;
  }

  .shop-nav-button {
    min-height: 38px;
    gap: 6px;
    padding: 7px 9px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content,
  .section,
  .cta {
    padding: 58px 0;
  }

  .section-carousel {
    padding: 36px 0 34px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .card-grid,
  .testimonial-grid,
  .value-grid,
  .team-grid,
  .news-grid,
  .partner-grid,
  .footer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .carousel-slide {
    min-height: 520px;
    aspect-ratio: auto;
  }

  .carousel-slide::after {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.34)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent);
  }

  .carousel-copy {
    width: calc(100% - 34px);
    margin: 0 auto 28px;
  }

  .carousel-copy h2 {
    font-size: clamp(1.85rem, 12vw, 2.8rem);
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    top: auto;
    bottom: 16px;
    font-size: 1.6rem;
    transform: none;
  }

  .carousel-prev {
    left: 16px;
  }

  .carousel-next {
    right: 16px;
  }

  .carousel-indicators {
    margin-top: 14px;
  }

  .news-card-content .btn {
    align-self: stretch;
  }
}
    

.social-links i {
    font-size: 30px;
    margin-right: 15px;
}

.site-footer .social-links i {
    margin: 0;
    font-size: 24px;
    line-height: 1;
}

.fa-instagram {
    color: #E4405F;
}

.fa-facebook-f {
    color: #1877F2;
}

.fa-youtube {
    color: #FF0000;
}

:where(a, button, input, textarea, select, iframe):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

:where(a, button):focus:not(:focus-visible) {
  outline: none;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.product-edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: #fff4e8;
}
.product-table tr.is-editing { background: #fff7f0; }
.product-existing-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.product-existing-images figure { margin: 0; }
.product-existing-images img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ff6b35;
    text-decoration: underline;
}