:root {
  --green-900: #0f3d2e;
  --green-800: #15523f;
  --green-700: #1b6b52;
  --green-100: #e8f4ee;
  --earth: #b9854c;
  --text: #10231c;
  --muted: #58726a;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(13, 49, 37, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text);
  background: #f7faf8;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(115deg, rgba(15, 61, 46, 0.92), rgba(27, 107, 82, 0.9)),
    url("imgs/affiche publicitaire.jpeg") center/cover;
  color: var(--white);
  padding-bottom: 4rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-collapse {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 5px;
}

.brand h1 {
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: 0.7px;
}

.brand p {
  font-size: 0.78rem;
  opacity: 0.92;
}

.nav-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.92rem;
  opacity: 0.95;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-links a.is-active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand {
  color: inherit;
}

/* Barre de navigation des pages internes */
.site-topbar {
  background: linear-gradient(115deg, var(--green-900), var(--green-700));
  color: var(--white);
}

.site-topbar .nav-links a,
.site-topbar .brand {
  color: var(--white);
}

.page-banner {
  background: var(--green-800);
  color: var(--white);
  padding: 2.4rem 0 2.6rem;
}

.page-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.page-banner p {
  margin-top: 0.5rem;
  max-width: 760px;
  opacity: 0.94;
}

.section-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-green {
  background: transparent;
  color: var(--green-800);
  border: 1px solid var(--green-700);
}

.badge-dark {
  background: var(--green-100);
  border-color: var(--green-700);
  color: var(--green-900);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

/* Intervenants & publications */
.intervenants-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.intervenant-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.intervenant-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.intervenant-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.intervenant-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-700);
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
}

.intervenant-role {
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.92rem;
}

.intervenant-speciality {
  color: var(--muted);
  font-size: 0.88rem;
}

.intervenant-bio {
  color: var(--text);
  font-size: 0.95rem;
}

.intervenant-contact {
  font-size: 0.9rem;
}

.intervenant-contact a {
  color: var(--green-700);
  text-decoration: underline;
}

.publications {
  border-top: 1px solid #e0ebe6;
  padding-top: 0.7rem;
  margin-top: auto;
}

.publications h5 {
  color: var(--green-800);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.publication-list {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.publication {
  font-size: 0.9rem;
  color: var(--text);
}

.pub-authors {
  font-weight: 600;
}

.pub-title a {
  color: var(--green-700);
  text-decoration: underline;
}

.pub-source {
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 980px) {
  .intervenants-grid {
    grid-template-columns: 1fr;
  }
}

/* Bande d'atouts (accueil) */
.highlights-band {
  background: var(--green-900);
  color: var(--white);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.6rem 0;
  text-align: center;
}

.highlight {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.highlight-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f0d9b8;
}

.highlight-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

/* Filières (accordéon de détails) */
.filieres-level {
  margin-bottom: 2.2rem;
}

.filieres-level-title {
  color: var(--green-900);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--green-100);
}

.filieres-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.filiere-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border-left: 4px solid var(--green-700);
}

.filiere-summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filiere-summary::-webkit-details-marker {
  display: none;
}

.filiere-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.filiere-name {
  font-weight: 600;
  color: var(--green-800);
  font-size: 1.08rem;
}

.filiere-level-badge {
  background: var(--green-100);
  border-color: var(--green-700);
  color: var(--green-900);
  flex-shrink: 0;
}

.filiere-summary-text {
  color: var(--muted);
  font-size: 0.92rem;
}

.filiere-toggle {
  align-self: flex-start;
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.85rem;
}

.filiere-toggle::before {
  content: "▸ ";
}

.filiere-card[open] .filiere-toggle::before {
  content: "▾ ";
}

.filiere-card[open] .filiere-toggle {
  color: var(--earth);
}

.filiere-details {
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid #eef4f1;
  animation: fadeIn 0.3s ease;
}

.filiere-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0.9rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.filiere-description {
  margin-bottom: 0.6rem;
}

.filiere-subtitle {
  color: var(--green-800);
  font-size: 0.98rem;
  margin: 0.7rem 0 0.3rem;
}

.filiere-details .btn {
  margin-top: 0.9rem;
}

@media (max-width: 980px) {
  .highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .filieres-grid {
    grid-template-columns: 1fr;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin: 0.9rem 0 1rem;
}

.hero-text p {
  max-width: 640px;
  opacity: 0.96;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-height: 310px;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.btn {
  display: inline-block;
  background: var(--earth);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-light {
  background: var(--white);
  color: var(--green-900);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.section {
  padding: 4rem 0;
}

.section-muted {
  background: var(--green-100);
}

.section-title {
  text-align: center;
  margin-bottom: 1.6rem;
}

.section-title h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--green-900);
}

.section-title p {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card h4 {
  color: var(--green-800);
  margin-bottom: 0.45rem;
}

.gallery-group {
  margin-bottom: 2.2rem;
}

.gallery-group-title {
  color: var(--green-900);
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--green-100);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery img:hover {
  transform: translateY(-3px);
  filter: saturate(1.05);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: center;
}

.poster {
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.cta-text h3 {
  color: var(--green-900);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 0.6rem;
}

.list {
  padding-left: 1.1rem;
}

.list li {
  margin-bottom: 0.35rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.map-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 10px;
  margin-top: 0.6rem;
}

.form-card form {
  display: grid;
  gap: 0.55rem;
}

.form-card label {
  font-weight: 500;
  color: var(--green-800);
}

.form-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 0.62rem 0.7rem;
  border: 1px solid #c7dacf;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-card input:not([type="checkbox"]):not([type="radio"]):focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 2px solid rgba(27, 107, 82, 0.25);
  border-color: var(--green-700);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.45;
}

.consent-row input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--green-700);
  cursor: pointer;
}

.form-note {
  font-size: 0.86rem;
  color: var(--muted);
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  background: var(--green-900);
  color: var(--white);
  padding-top: 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.footer h4 {
  margin-bottom: 0.35rem;
  color: #d4e9df;
}

.footer a {
  text-decoration: underline;
}

.copyright {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.9rem 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 980px) {
  .hero-content,
  .cards.three,
  .cards.two,
  .info-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(8, 28, 22, 0.45);
    z-index: 40;
  }

  .hero,
  .site-topbar {
    padding-top: 5.4rem;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.75rem 4%;
    flex-wrap: nowrap;
    background: linear-gradient(115deg, var(--green-900), var(--green-700));
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-toggle {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
    position: relative;
    z-index: 2;
  }

  .nav-collapse {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: min(20rem, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin: 0;
    padding: 5.4rem 1rem 1.4rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, var(--green-900), var(--green-800));
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.28);
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.25s ease;
  }

  .nav-collapse.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
  }

  .nav-links a.is-active {
    background: rgba(255, 255, 255, 0.16);
    text-decoration: none;
  }

  .nav-collapse .nav-search {
    width: 100%;
  }

  .nav-collapse .nav-search input {
    width: 100%;
    flex: 1 1 auto;
    min-height: 44px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.4rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Recherche dans la barre de navigation */
.nav-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  overflow: hidden;
}

.nav-search input {
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 0.4rem 0.7rem;
  font-family: inherit;
  font-size: 0.85rem;
  width: 140px;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.nav-search button {
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 0.6rem;
}

/* Pied de page : liens & newsletter */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  text-decoration: none;
  opacity: 0.92;
}

.footer-links a:hover {
  text-decoration: underline;
}

.newsletter-form {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 150px;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-note {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.newsletter-note.ok {
  color: #bdebcf;
}

.newsletter-note.err {
  color: #ffc9c2;
}

/* Messages publics */
.alert-success-public,
.alert-error-public {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.alert-success-public {
  background: #e3f5e9;
  color: #14603f;
  border: 1px solid #9bd5b4;
}

.alert-error-public {
  background: #fdecea;
  color: #97271c;
  border: 1px solid #f0b3ab;
}

/* Documents */
.doc-group {
  margin-bottom: 2rem;
}

.doc-group-title {
  color: var(--green-900);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--green-100);
}

.doc-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}

.doc-ext {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-700);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
}

.doc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doc-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  margin: 0;
  border-top: 4px solid var(--earth);
}

.testimonial-text {
  font-style: italic;
  color: var(--text);
  margin: 0 0 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-700);
  color: var(--white);
  font-weight: 700;
  font-size: 1.4rem;
}

.testimonial-author strong {
  display: block;
  color: var(--green-800);
}

.testimonial-form-card {
  max-width: 640px;
  margin: 0 auto;
}

.testimonial-form-card input[type="file"] {
  width: 100%;
  padding: 0.35rem 0;
}

.testimonial-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Partenaires - carrousel */
.partners-carousel {
  --partner-gap: 1rem;
  --partner-card: 11.5rem;
  position: relative;
}

.partners-viewport {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  padding: 0.35rem 0.15rem 0.85rem;
}

.partners-track {
  display: flex;
  gap: var(--partner-gap);
  width: max-content;
  will-change: transform;
}

.partner-item {
  flex: 0 0 var(--partner-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 9.5rem;
  padding: 1.05rem 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f5 100%);
  border: 1px solid #d9e7df;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.partner-item:hover,
.partner-item:focus-visible {
  transform: translateY(-2px);
  border-color: #b7d0c3;
  box-shadow: 0 10px 24px rgba(15, 61, 46, 0.12);
  outline: none;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 68px;
}

.partner-logo img {
  max-height: 68px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.12);
  transition: filter 0.22s ease;
}

.partner-item:hover .partner-logo img,
.partner-item:focus-visible .partner-logo img {
  filter: none;
}

.partner-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--green-800), var(--green-700));
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.partner-name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--green-800);
  text-align: center;
}

@media (max-width: 700px) {
  .partners-carousel {
    --partner-card: 9.6rem;
  }

  .partner-item {
    min-height: 8.8rem;
    padding: 0.9rem 0.7rem;
  }

  .partner-name {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .partners-viewport::-webkit-scrollbar {
    display: none;
  }

  .partners-track {
    will-change: auto;
    transform: none !important;
  }

  .partner-item {
    scroll-snap-align: start;
  }

  .partner-item,
  .partner-logo img {
    transition: none;
  }
}

/* FAQ */
.faq-group {
  margin-bottom: 1.8rem;
}

.faq-group-title {
  color: var(--green-900);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 0.6rem;
  border-left: 4px solid var(--green-700);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--green-800);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+ ";
  color: var(--earth);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "− ";
}

.faq-answer {
  padding: 0 1.1rem 1.1rem;
  color: var(--text);
}

/* Événements */
.events-section-title {
  color: var(--green-900);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.events-list {
  display: grid;
  gap: 1rem;
}

.event-card {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.event-date-badge {
  flex-shrink: 0;
  width: 84px;
  background: linear-gradient(160deg, var(--green-800), var(--green-700));
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
}

.event-day {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  font-size: 0.78rem;
  letter-spacing: 1px;
}

.event-body {
  padding: 1rem 1.1rem;
  flex: 1;
}

.event-body h4 {
  color: var(--green-800);
}

.event-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.2rem 0 0.6rem;
}

.event-register {
  margin-top: 0.7rem;
}

.event-register summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
}

.event-register summary::-webkit-details-marker {
  display: none;
}

.event-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
  max-width: 460px;
}

.event-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--green-800);
  font-weight: 500;
  gap: 0.2rem;
}

.event-form input:not([type="checkbox"]):not([type="hidden"]),
.event-form textarea {
  padding: 0.55rem 0.7rem;
  border: 1px solid #c7dacf;
  border-radius: 8px;
  font-family: inherit;
}

.event-full {
  color: #97271c;
  font-weight: 600;
  margin-top: 0.6rem;
}

.events-past {
  list-style: none;
  padding: 0;
}

.events-past li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0ebe6;
  color: var(--muted);
}

/* Dépôt de publications & recherche */
.repo-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.repo-filters input[type="search"] {
  flex: 1 1 240px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #c7dacf;
  border-radius: 8px;
  font-family: inherit;
}

.repo-filters select {
  padding: 0.6rem 0.7rem;
  border: 1px solid #c7dacf;
  border-radius: 8px;
  font-family: inherit;
}

.repo-count {
  color: var(--muted);
  margin-bottom: 1rem;
}

.repo-list {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1.2rem 2.4rem;
}

.pub-author-tag a {
  color: var(--green-700);
  text-decoration: underline;
}

.search-group {
  margin-bottom: 1.6rem;
}

.search-group-title {
  color: var(--green-900);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--green-100);
}

.search-results {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.search-results li {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.8rem 1rem;
}

.search-results a {
  color: var(--green-800);
  font-weight: 600;
  text-decoration: none;
}

.search-results a:hover {
  text-decoration: underline;
}

.search-snippet {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

@media (max-width: 860px) {
  .nav-search {
    width: 100%;
  }

  .nav-search input {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 760px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    flex-direction: column;
  }

  .event-date-badge {
    width: 100%;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.6rem;
  }
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13, 49, 37, 0.08);
}

.calendar-table th,
.calendar-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0ebe6;
  text-align: left;
}

.calendar-table th {
  background: #e8f4ee;
  color: #0f3d2e;
}

.legal-links {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.legal-links a {
  color: #b8e0c8;
}

.visit-counter {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

.visit-counter summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.visit-counter summary::-webkit-details-marker,
.visit-counter summary::marker {
  display: none;
  content: "";
}

.visit-counter summary::after {
  content: "";
  display: inline-block;
  width: 0.32rem;
  height: 0.32rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.85;
}

.visit-counter[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.visit-counter-detail {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  opacity: 0.9;
}

.maint-preview-banner {
  background: #b9854c;
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.maintenance-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(15, 61, 46, 0.94), rgba(27, 107, 82, 0.9)),
    url("imgs/affiche publicitaire.jpeg") center/cover;
  padding: 1.5rem;
}

.maintenance-card {
  width: min(640px, 100%);
  text-align: center;
  background: #fff;
  padding: 2.4rem 1.7rem 2rem;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(8, 28, 20, 0.35);
}

.maintenance-card img {
  margin: 0 auto 1.1rem;
}

.maintenance-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: #fff3cd;
  color: #7a4b00;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #f0d48a;
}

.maintenance-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #c47b00;
  box-shadow: 0 0 0 0 rgba(196, 123, 0, 0.7);
  animation: maintenance-pulse 1.6s ease-out infinite;
}

@keyframes maintenance-pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 123, 0, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(196, 123, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 123, 0, 0); }
}

.maintenance-card h1 {
  color: var(--green-900);
  margin: 1rem 0 1rem;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.maintenance-message {
  background: linear-gradient(180deg, #e8f4ee 0%, #f7faf8 100%);
  border: 2px solid var(--green-700);
  border-left: 8px solid var(--earth);
  border-radius: 14px;
  padding: 1.2rem 1.15rem;
  margin: 0 0 1.1rem;
}

.maintenance-message p {
  color: var(--green-900);
  font-size: clamp(1.08rem, 2.4vw, 1.22rem);
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
}

.maintenance-eta {
  margin: 0 auto;
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: #fff8e8;
  color: #7a4b00;
  font-weight: 700;
}

.maintenance-contact {
  margin-top: 1.15rem;
  color: var(--muted);
  font-weight: 500;
}

.maintenance-card a {
  color: var(--green-800);
  text-decoration: underline;
  font-weight: 600;
}

/* Motion "Présence" */
:root {
  --motion-ease: cubic-bezier(0.33, 1, 0.68, 1);
}

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 0.55s var(--motion-ease),
    transform 0.55s var(--motion-ease),
    filter 0.55s var(--motion-ease);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform, filter;
}

.motion-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.motion-reveal.is-out {
  opacity: 0;
  transform: translate3d(0, -28px, 0) scale(0.985);
  filter: blur(4px);
}

.hero-text > *,
.hero-image img,
.page-banner .container > * {
  opacity: 0;
  will-change: opacity, transform, filter;
}

.hero-text > *,
.page-banner .container > * {
  transform: translate3d(0, 24px, 0);
}

.hero-image img {
  transform: scale(1.04);
}

.hero:not(.is-ready):not(.is-leaving) .hero-text > *,
.page-banner:not(.is-ready):not(.is-leaving) .container > * {
  animation: motion-presence-in 0.7s var(--motion-ease) forwards;
}

.hero:not(.is-ready):not(.is-leaving) .hero-text > *:nth-child(1),
.page-banner:not(.is-ready):not(.is-leaving) .container > *:nth-child(1) { animation-delay: 80ms; }
.hero:not(.is-ready):not(.is-leaving) .hero-text > *:nth-child(2),
.page-banner:not(.is-ready):not(.is-leaving) .container > *:nth-child(2) { animation-delay: 160ms; }
.hero:not(.is-ready):not(.is-leaving) .hero-text > *:nth-child(3) { animation-delay: 240ms; }
.hero:not(.is-ready):not(.is-leaving) .hero-text > *:nth-child(4) { animation-delay: 320ms; }

.hero:not(.is-ready):not(.is-leaving) .hero-image img {
  animation: motion-presence-photo 0.85s var(--motion-ease) both;
}

.hero.is-ready .hero-text > *,
.hero.is-ready .hero-image img,
.page-banner.is-ready .container > * {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.55s var(--motion-ease),
    transform 0.55s var(--motion-ease),
    filter 0.55s var(--motion-ease);
}

.hero.is-ready .hero-text > *:nth-child(1),
.page-banner.is-ready .container > *:nth-child(1) { transition-delay: 0ms; }
.hero.is-ready .hero-text > *:nth-child(2),
.page-banner.is-ready .container > *:nth-child(2) { transition-delay: 40ms; }
.hero.is-ready .hero-text > *:nth-child(3) { transition-delay: 80ms; }
.hero.is-ready .hero-text > *:nth-child(4) { transition-delay: 120ms; }
.hero.is-ready .hero-image img { transition-delay: 60ms; }

/* Sortie : inverse de Présence */
.hero.is-leaving .hero-text > *,
.hero.is-leaving .hero-image img,
.page-banner.is-leaving .container > * {
  animation: none;
  opacity: 0;
  filter: blur(4px);
  transition:
    opacity 0.55s var(--motion-ease),
    transform 0.55s var(--motion-ease),
    filter 0.55s var(--motion-ease);
}

.hero.is-leaving .hero-text > *,
.page-banner.is-leaving .container > * {
  transform: translate3d(0, -28px, 0) scale(0.985);
}

.hero.is-leaving .hero-text > *:nth-child(1),
.page-banner.is-leaving .container > *:nth-child(1) { transition-delay: 0ms; }
.hero.is-leaving .hero-text > *:nth-child(2),
.page-banner.is-leaving .container > *:nth-child(2) { transition-delay: 40ms; }
.hero.is-leaving .hero-text > *:nth-child(3) { transition-delay: 80ms; }
.hero.is-leaving .hero-text > *:nth-child(4) { transition-delay: 120ms; }

.hero.is-leaving .hero-image img {
  transform: scale(1.04);
  transition-delay: 60ms;
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

@keyframes motion-presence-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes motion-presence-photo {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-reveal,
  .motion-reveal.is-out,
  .hero-text > *,
  .hero-image img,
  .page-banner .container > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }

  .hero.is-leaving .hero-text > *,
  .hero.is-leaving .hero-image img,
  .page-banner.is-leaving .container > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
