/* Personnalisation SurvieActionNature (surcharge du thème Venturo) */
:root {
  --san-green: #2f7d4f;
  --san-green-dark: #1d5c38;
  --san-earth: #c47a1e;
  --san-sand: #f4f1ea;
}
.text-primary { color: var(--san-green) !important; }
.btn-primary, .btn-primary:hover, .btn-primary:focus { color: #fff; }
.bg-home4 { background: linear-gradient(135deg, rgba(47,125,79,.16), rgba(196,122,30,.10)); }

/* Cartes d'activités */
.activity-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 18px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.activity-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(15,23,42,.35); }
.activity-card-media { aspect-ratio: 3/2; overflow: hidden; background: var(--san-sand); }
.activity-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.activity-card:hover .activity-card-media img { transform: scale(1.04); }
.activity-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.activity-card-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.activity-card-body .activity-tagline { color: var(--san-green); font-weight: 600; margin-bottom: 8px; }
.activity-card-body .activity-summary { color: #64748b; font-size: .95rem; margin-bottom: 18px; }
.activity-card-body .activity-link { margin-top: auto; font-weight: 600; color: var(--san-green); }
.activity-card-body .activity-link i { transition: transform .2s; }
.activity-card:hover .activity-link i { transform: translateX(4px); }

/* Liste de dates */
.session-list { list-style: none; padding: 0; margin: 0; }
.session-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid rgba(15,23,42,.08); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.session-date { min-width: 64px; text-align: center; background: var(--san-green); color: #fff; border-radius: 10px; padding: 8px 6px; line-height: 1.1; }
.session-date strong { display: block; font-size: 1.4rem; }
.session-date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.session-item .session-info { flex: 1; }
.session-item .session-info strong { display: block; }
.session-item .session-info small { color: #64748b; }
.session-badge { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(47,125,79,.12); color: var(--san-green-dark); white-space: nowrap; }
.session-badge.full { background: rgba(220,38,38,.12); color: #b91c1c; }

/* Page activité */
.activity-hero-image { border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; background: var(--san-sand); }
.activity-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.activity-content p { line-height: 1.8; }
.practical-box { background: var(--san-sand); border-radius: 16px; padding: 24px; }
.practical-box h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.practical-box dl { margin: 0; }
.practical-box dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin-top: 12px; }
.practical-box dd { margin: 2px 0 0; font-weight: 600; }
.program-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.program-list li { position: relative; padding: 10px 0 10px 44px; border-bottom: 1px dashed rgba(15,23,42,.12); }
.program-list li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(47,125,79,.12); color: var(--san-green-dark); font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.form-card { background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 20px; padding: 32px; }
.form-card h3 { font-weight: 700; margin-bottom: 6px; }
.form-card label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-card .form-control, .form-card .form-select { border-radius: 10px; padding: 12px 14px; }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--san-green); box-shadow: 0 0 0 .2rem rgba(47,125,79,.15); }
.required::after { content: " *"; color: #b91c1c; }

/* Compteurs */
.stats-strip { background: var(--san-green-dark); color: #fff; border-radius: 24px; padding: 40px 24px; }
.stats-strip .stat { text-align: center; }
.stats-strip .stat strong { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stats-strip .stat span { opacity: .8; }

/* Pied de page */
.footer-rating { display: flex; align-items: center; gap: 10px; color: #cbd5e1; }
.footer-rating strong { font-size: 1.3rem; color: #fff; }
.footer-rating-stars { color: #f5b301; }
.footer-rating a { color: #cbd5e1; text-decoration: underline; }
.footer-address { display: block; color: #cbd5e1; line-height: 1.7; margin-bottom: 10px; }

/* Équipe */
.team-card { text-align: center; background: #fff; border-radius: 18px; padding: 28px 22px; border: 1px solid rgba(15,23,42,.08); height: 100%; }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; background: var(--san-sand); }
.team-avatar { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; margin-bottom: 16px; font-size: 2rem; font-weight: 700; color: #fff; background: linear-gradient(145deg, #2f7d4f, #1d5c38); box-shadow: 0 10px 24px rgba(47,125,79,.22); }
.san-team-visual { padding: 28px 24px 0; background: radial-gradient(circle at 50% 100%, rgba(47,125,79,.18), rgba(47,125,79,.05) 60%, #f7faff 100%); }
.san-team-visual img { width: 100%; height: auto; display: block; }
.team-card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.team-card .team-role { color: var(--san-green); font-weight: 600; font-size: .9rem; margin-bottom: 12px; display: block; }
.team-card p { color: #475569; font-size: .95rem; text-align: left; }

/* Qui sommes-nous : association et charte */
.san-association { background: var(--san-sand); border-radius: 24px; padding: 40px; }
.san-association h2 { font-size: 1.6rem; font-weight: 700; margin: 8px 0 12px; }
.san-association p { color: #475569; }
/* Grille en flex : un point isolé sur une ligne est centré */
.about-principles-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.about-principles-grid .about-principle-item { flex: 1 1 250px; max-width: 340px; }
.about-principles-grid .about-principle-item + .about-principle-item::before { display: none; }
@media (max-width: 575.98px) { .about-principles-grid .about-principle-item { max-width: 100%; } }

/* Préinscription : étapes */
.san-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.san-step { display: flex; gap: 14px; align-items: flex-start; background: var(--san-sand); border-radius: 16px; padding: 20px; }
.san-step > span { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--san-green); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.san-step strong { display: block; margin-bottom: 4px; }
.san-step p { margin: 0; color: #475569; font-size: .95rem; }
@media (max-width: 991.98px) { .san-steps { grid-template-columns: 1fr; } }
.san-preregister-card { background: var(--san-sand); border-color: transparent; }

/* Divers */
.page-hero-sub { max-width: 720px; margin: 12px auto 0; color: #475569; }
.alert { border-radius: 12px; }
.brand-mark { width: 40px; height: 40px; }
.venturo-loader-symbol img { width: 40px; }
.blog-insight-image img, .journal-row-media img, .journal-feature-media img, .blog-editorial-image img, .classic-article-cover img { object-fit: cover; }
.classic-article-cover img { width: 100%; max-height: 420px; }

/* Logos SurvieActionNature */
.san-brand { display: flex; align-items: center; padding: 0; }
.san-brand-logo { height: 58px; width: auto; max-width: 300px; object-fit: contain; transition: height .3s; }
.nav-sticky .san-brand-logo { height: 50px; }
@media (max-width: 991.98px) { .san-brand-logo, .nav-sticky .san-brand-logo { height: 48px; max-width: 220px; } }
.san-footer-logo { background: #fff; border-radius: 14px; padding: 10px 16px; }
.san-footer-logo img { height: 60px; width: auto; max-width: 260px; object-fit: contain; }
.san-loader { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.san-loader-logo { width: 200px; max-width: 60vw; height: auto; }

/* Illustration d'accueil */
.san-hero-illustration { background: transparent; box-shadow: none; }
.hero-visual-panel:has(.san-hero-illustration) { background: transparent; box-shadow: none; }

/* Encadré avis Google cliquable */
.san-rating-link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.san-rating-link:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(15,23,42,.35); color: inherit; }
.san-rating-cta { color: var(--san-green); font-weight: 600; }

.home-blog-pill.active { background: var(--san-green); color: #fff; }
a.home-blog-pill { text-decoration: none; }

.classic-category-count { font-size: .8rem; color: #64748b; background: rgba(47,125,79,.08); border-radius: 999px; padding: 2px 9px; }

/* Charte bivouac : points centrés */
.about-principles-grid .about-principle-item { text-align: center; padding: 34px 28px 36px; }
.about-principles-grid .about-principle-item p { margin-left: auto; margin-right: auto; }
.about-principles-grid .about-principle-number { display: inline-block; }

/* Bouton d'inscription dans la colonne latérale des fiches (neutralise le style des liens de liste) */
.service-detail-sidebar > a.btn.san-side-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 13px 20px; border-bottom: 0; border-radius: 10px; background: var(--san-green); color: #fff; font-size: 15px; font-weight: 700; }
.service-detail-sidebar > a.btn.san-side-btn:hover { background: var(--san-green-dark); color: #fff; }

/* Menu : bouton Inscription mis en avant, Contact en secondaire */
.san-nav-actions { display: flex; align-items: center; gap: 10px; }
.san-nav-cta { background: var(--san-earth) !important; border-color: var(--san-earth) !important; color: #fff !important; box-shadow: 0 10px 22px -12px rgba(196,122,30,.8); }
.san-nav-cta:hover, .san-nav-cta.is-active { background: #a8661a !important; border-color: #a8661a !important; transform: translateY(-2px); }
.san-nav-cta i { font-size: 1rem; vertical-align: -1px; }
.san-nav-secondary { background: transparent !important; border: 1px solid rgba(47,125,79,.45) !important; color: var(--san-green-dark) !important; box-shadow: none !important; }
.san-nav-secondary:hover { background: rgba(47,125,79,.08) !important; }
@media (max-width: 991.98px) { .san-nav-actions { display: none; } }

/* Accueil : compteurs sur toute la largeur quand la section témoignages est désactivée */
.san-trust-inline { flex-direction: row; align-items: center; justify-content: space-around; gap: 24px; padding: 30px 34px; text-align: center; }
.san-trust-inline .client-trust-divider { width: 1px; height: 56px; margin: 0; align-self: center; }
.san-trust-inline .client-trust-item strong { font-size: 40px; }
@media (max-width: 767.98px) { .san-trust-inline { flex-direction: column; gap: 18px; } .san-trust-inline .client-trust-divider { width: 100%; height: 1px; } }

/* ---------- Questions fréquentes (accordéon) ---------- */
.san-faq .accordion-item { border: 1px solid #e3ebe6; border-radius: 14px !important; margin-bottom: 12px; overflow: hidden; background: #fff; }
.san-faq .accordion-button { font-weight: 600; font-size: 1.02rem; color: #0f172a; padding: 18px 22px; background: #fff; box-shadow: none; }
.san-faq .accordion-button:not(.collapsed) { color: var(--san-green-dark); background: #f4f8f5; }
.san-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(47, 125, 79, .18); }
.san-faq .accordion-button::after { filter: grayscale(1); opacity: .6; }
.san-faq .accordion-body { color: #475569; line-height: 1.75; padding: 6px 22px 20px; }
.san-faq-item h3 { margin: 0; font-size: inherit; }
.san-faq-contact { font-weight: 600; color: var(--san-green); text-decoration: none; }
.san-faq-contact:hover { color: var(--san-green-dark); }

/* ---------- Mobile : ajustements (l'affichage ordinateur est inchangé) ---------- */
#preloader.is-hidden { pointer-events: none; }
img { max-width: 100%; height: auto; }

@media (max-width: 991.98px) {
  /* Menu déroulant : panneau pleine largeur, lisible au doigt */
  #navbar .navbar-collapse { max-height: calc(100vh - 80px); overflow-y: auto; padding-bottom: 12px; }
  #navbar .navbar-nav .nav-link { padding: 12px 16px; font-size: 1.05rem; }
  #navbar .dropdown-menu { border: 0; box-shadow: none; padding-left: 16px; background: transparent; }
  #navbar .dropdown-menu .nav-link, #navbar .dropdown-menu a { padding: 10px 16px; display: block; }
}

@media (max-width: 767.98px) {
  /* Bandeau d'accueil : moins d'espace vide sous la barre de navigation */
  #home.bg-home4 { padding: 84px 0 36px; }          /* la section porte déjà la marge sous le menu */
  .hero-section-wrap { padding: 0; }
  .hero-title { font-size: clamp(30px, 8.5vw, 38px); line-height: 1.15; }
  .hero-desc { font-size: 1rem; }
  .hero-actions { display: flex; flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { font-size: .9rem; line-height: 1.8; }
  .hero-content-card { padding-left: 0; padding-right: 0; }

  /* Bandeaux des pages intérieures */
  .services-index-hero { padding: 110px 0 44px; }
  .services-index-hero h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.15; }
  .services-breadcrumb { font-size: .9rem; flex-wrap: wrap; justify-content: center; row-gap: 4px; }
  .page-hero-sub { font-size: .95rem; }

  /* Sections : respiration réduite, titres recalibrés */
  .section { padding: 52px 0; }
  .section h2, .title-heading h2 { font-size: clamp(24px, 6.5vw, 30px); line-height: 1.2; }
  .btn, .form-control, .form-select { min-height: 44px; }
  .form-control, .form-select, input, select, textarea { font-size: 16px; }   /* évite le zoom automatique sur iPhone */

  /* Cartes et listes : marges uniformes */
  .blog-insight-card .blog-insight-body, .activity-card-body { padding: 18px; }
  .san-testimonial-row, .classic-article { padding-left: 0; padding-right: 0; }
  .classic-article-cover img { max-height: 260px; object-fit: cover; }

  /* Pied de page : logo plus compact, colonnes empilées avec un peu d'air */
  .san-footer-logo img { max-width: 170px; }
  .venturo-footer-bottom { text-align: center; }
  .venturo-footer-legal { flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin-top: 10px; }
}

@media (max-width: 575.98px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .services-index-hero { padding-top: 100px; }
  .san-trust-inline .client-trust-item strong, .san-trust-inline .counter_value { font-size: 2.2rem; }
}
