/* ==========================================================================
   Foyer Rural de Salles-sur-Mer - Styles Modernes & Responsive Mobile-First
   ========================================================================== */

:root {
  --primary: #1e7d43;
  --primary-light: #2da45c;
  --primary-dark: #155d31;
  --primary-subtle: #e8f5ed;
  --accent: #1ebbf0;
  --accent-warm: #f59e0b;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --bg-page: #f9fafb;
  --bg-card: #ffffff;
  --bg-alt: #f3f4f6;
  --border-color: #e5e7eb;
  --border-focus: #1e7d43;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

strong, b {
  font-weight: 700;
  color: inherit;
}

em, i {
  font-style: italic;
}

.text-enlarged {
  font-size: 1.22em;
  font-weight: 700;
  line-height: 1.35;
}

.text-enlarged.text-h2 {
  font-size: 1.38em;
  font-weight: 800;
  margin: 0.6rem 0 0.3rem 0;
  display: block;
}

.text-enlarged.text-h3 {
  font-size: 1.22em;
  font-weight: 800;
  margin: 0.5rem 0 0.25rem 0;
  display: block;
}

.rich-link {
  color: var(--primary, #1e7d43);
  text-decoration: underline;
  font-weight: 600;
}

/* Accessibility: Enhanced Focus Indicator */
:focus-visible {
  outline: 3px solid #1e7d43;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Accessibility: Skip to main content link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: #111827;
  color: #ffffff !important;
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  font-size: 1rem;
  z-index: 10000;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  border: 2px solid #f59e0b;
}

.skip-link:focus {
  top: 1rem;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Section Common */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-subtle);
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.35rem;
  }
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Flash Alert Banner */
.alert-banner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.alert-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-align: center;
}

.alert-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
  margin-left: 0.35rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #111827;
  font-weight: 800;
  font-size: 1.125rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px rgba(30, 125, 67, 0.2);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 99;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid var(--border-color);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer .nav-link {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem 0;
  background: radial-gradient(circle at top right, rgba(30, 187, 240, 0.08), transparent 40%),
              radial-gradient(circle at bottom left, rgba(30, 125, 67, 0.08), transparent 40%),
              #ffffff;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

/* Hero Video Background */
.hero-has-video {
  position: relative;
  background-color: #0b131a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.72;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 19, 26, 0.88) 0%, rgba(13, 26, 20, 0.76) 50%, rgba(30, 125, 67, 0.58) 100%);
  backdrop-filter: blur(1px);
}

.hero-has-video .container {
  position: relative;
  z-index: 2;
}

.hero-has-video .hero-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.hero-has-video .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.hero-has-video .hero-title span {
  color: #ffe066;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-has-video .hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-has-video .hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.hero-has-video .hero-actions .btn-outline:hover {
  background: #ffffff;
  color: var(--primary-dark);
  border-color: #ffffff;
}

.hero-has-video .hero-stats {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.hero-has-video .hero-stat-item {
  background: rgba(11, 19, 26, 0.45);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.hero-has-video .hero-stat-item h3 {
  color: #ffe066;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-has-video .hero-stat-item p {
  color: rgba(255, 255, 255, 0.85);
}

.hero-has-video .hero-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  color: #111827;
}

.hero-video-ctrl {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(11, 19, 26, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.hero-video-ctrl:hover,
.hero-video-ctrl:focus-visible {
  background: rgba(11, 19, 26, 0.95);
  border-color: #ffffff;
  outline: 2px solid #ffe066;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .hero-video-ctrl {
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
  }
}

/* Accessibility Overrides for Hero Video */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none !important;
  }
  .hero-video-wrapper {
    background-image: url('../videos/hero-banner-poster.jpg');
    background-size: cover;
    background-position: center;
  }
  .hero-video-ctrl {
    display: none !important;
  }
}

body.a11y-no-motion .hero-video {
  display: none !important;
}

body.a11y-no-motion .hero-video-wrapper {
  background-image: url('../videos/hero-banner-poster.jpg');
  background-size: cover;
  background-position: center;
}

body.a11y-no-motion .hero-video-ctrl {
  display: none !important;
}

body.a11y-high-contrast .hero-video-wrapper,
body.a11y-high-contrast .hero-video-ctrl {
  display: none !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.15;
  color: #111827;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.hero-title span {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 125, 67, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 125, 67, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.btn-accent {
  background-color: var(--accent-warm);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: #d97706;
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.hero-stat-item h3 {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.hero-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.badge-green {
  background: var(--primary-subtle);
  color: var(--primary);
}

.badge-amber {
  background: #fef3c7;
  color: #b45309;
}

.badge-blue {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-pro {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-benevole {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-gallery {
  background: rgba(17, 24, 39, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

/* Actualités Grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 125, 67, 0.3);
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: var(--bg-alt);
  overflow: hidden;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5ed 0%, #c9e8d4 100%);
  color: var(--primary);
  font-size: 3rem;
}

.news-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.news-excerpt {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

.read-more-btn:hover,
.read-more-btn:focus-visible {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(30, 125, 67, 0.25);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Ateliers Filters & Grid */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.45rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.ateliers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ateliers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ateliers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.atelier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.atelier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 125, 67, 0.3);
}

.atelier-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: var(--bg-alt);
}

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

.atelier-category {
  position: absolute;
  top: 12px;
  left: 12px;
}

.atelier-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.atelier-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.75rem;
}

.atelier-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
  flex-grow: 1;
}

.atelier-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.atelier-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted);
}

.atelier-meta-item strong {
  color: #111827;
  min-width: 75px;
}

.atelier-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.atelier-badges-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.atelier-badges-overlay .badge {
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.callout-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #ea580c;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.callout-note-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.callout-note-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
}

.callout-note-content strong {
  color: #0f172a;
}

.atelier-instructor-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.instructor-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  overflow: hidden;
}

.instructor-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.instructor-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.2;
}

.instructor-name {
  font-size: 0.875rem;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.instructor-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.text-pro-fee {
  color: #c2410c;
  font-weight: 700;
}

.text-free-fee {
  color: var(--primary);
  font-weight: 700;
}

.price-badge-pro {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.price-badge-benevole {
  background: var(--primary-subtle);
  color: var(--primary-dark);
}

.atelier-price-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* Adhésion Section */
.adhesion-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .adhesion-wrapper {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.adhesion-card {
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
}

.adhesion-price-big {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin: 1rem 0 0.5rem 0;
}

.adhesion-price-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.adhesion-features {
  text-align: left;
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adhesion-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.check-icon {
  color: var(--primary);
  font-weight: bold;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1rem;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-box {
  margin-top: 3.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #111827;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* L'Association & Bureau */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.value-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.bureau-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bureau-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bureau-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bureau-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.bureau-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.25rem;
}

.bureau-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.bureau-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.bureau-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid rgba(30, 125, 67, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 0.75rem;
}

.bureau-email-link:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Legal Cards */
.legal-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.legal-item h5 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.legal-item p {
  font-weight: 700;
  color: #111827;
  font-size: 0.95rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #111827;
}

.contact-item-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item-text h5 {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.contact-item-text p, .contact-item-text a {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

/* Contact Form */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.35rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #fafafa;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 125, 67, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  display: none;
}

.form-alert.success {
  display: block;
  background: #def7ec;
  color: #03543f;
  border: 1px solid #84e1bc;
}

.form-alert.error {
  display: block;
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

/* Honeypot hidden input */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover {
  color: #111827;
}

.modal-body {
  padding: 1.5rem;
}

/* Footer */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 3.5rem 0 2rem 0;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-links h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

.admin-link {
  color: #6b7280;
  font-size: 0.8125rem;
}

.admin-link:hover {
  color: #d1d5db;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Accessibility Suite (WCAG 2.1 AA / RGAA / DYS / Malvoyance)
   ========================================================================== */

/* 1. High Contrast Theme */
body.a11y-high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.a11y-high-contrast .site-header,
body.a11y-high-contrast .hero,
body.a11y-high-contrast .section,
body.a11y-high-contrast .section-alt,
body.a11y-high-contrast .news-card,
body.a11y-high-contrast .atelier-card,
body.a11y-high-contrast .adhesion-card,
body.a11y-high-contrast .value-card,
body.a11y-high-contrast .bureau-card,
body.a11y-high-contrast .legal-box,
body.a11y-high-contrast .contact-info-card,
body.a11y-high-contrast .form-card,
body.a11y-high-contrast .faq-item,
body.a11y-high-contrast .modal-container,
body.a11y-high-contrast .mobile-drawer {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffff00 !important;
}

body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast h4,
body.a11y-high-contrast h5,
body.a11y-high-contrast .section-title,
body.a11y-high-contrast .hero-title,
body.a11y-high-contrast .news-card-title,
body.a11y-high-contrast .atelier-title,
body.a11y-high-contrast .adhesion-price-big,
body.a11y-high-contrast .badge,
body.a11y-high-contrast strong {
  color: #ffff00 !important;
}

body.a11y-high-contrast a {
  color: #00ffff !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}

body.a11y-high-contrast .btn-primary {
  background-color: #ffff00 !important;
  color: #000000 !important;
  border-color: #ffff00 !important;
  font-weight: 900 !important;
}

body.a11y-high-contrast .btn-outline {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

body.a11y-high-contrast .form-input,
body.a11y-high-contrast .form-textarea,
body.a11y-high-contrast .form-select {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffff00 !important;
}

body.a11y-high-contrast :focus-visible {
  outline: 4px solid #ffff00 !important;
  outline-offset: 4px !important;
}

/* 2. Text Resizing */
html.a11y-font-lg {
  font-size: 19px !important;
}

html.a11y-font-xl {
  font-size: 22px !important;
}

/* 3. Dyslexia / Cognitive Friendly Mode */
body.a11y-dyslexic {
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  letter-spacing: 0.12em !important;
  word-spacing: 0.25em !important;
  line-height: 2 !important;
}

body.a11y-dyslexic p,
body.a11y-dyslexic li,
body.a11y-dyslexic a,
body.a11y-dyslexic span,
body.a11y-dyslexic h1,
body.a11y-dyslexic h2,
body.a11y-dyslexic h3 {
  letter-spacing: 0.12em !important;
  word-spacing: 0.25em !important;
  line-height: 2 !important;
}

/* 4. Motion Reduction */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body.a11y-no-motion *,
body.a11y-no-motion *::before,
body.a11y-no-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* 5. Accessibility Floating Widget */
.a11y-widget-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #111827;
  color: #ffffff;
  border: 2px solid #374151;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 95;
  transition: var(--transition);
}

.a11y-widget-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.a11y-panel {
  position: fixed;
  bottom: 80px;
  left: 24px;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 320px;
  max-width: calc(100vw - 48px);
  box-shadow: var(--shadow-xl);
  z-index: 96;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeInUp 0.2s ease forwards;
}

.a11y-panel.active {
  display: flex;
}

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.a11y-panel-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.a11y-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.a11y-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.a11y-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.a11y-opt-btn {
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.a11y-opt-btn.active, .a11y-opt-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.a11y-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ==========================================================================
   Atelier Photo Gallery & Accessible Lightbox
   ========================================================================== */

/* Gallery Folders Navigation (Albums) */
.gallery-folders-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  scrollbar-width: thin;
}

.gallery-folders-nav::-webkit-scrollbar {
  height: 4px;
}

.gallery-folders-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.gallery-folder-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  outline-offset: 2px;
}

.gallery-folder-tab:hover {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.gallery-folder-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.gallery-folder-tab .folder-count {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.gallery-folder-tab.active .folder-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.gallery-thumb-folder-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  padding: 0.15rem 0.45rem;
  background: rgba(17, 24, 39, 0.85);
  color: #f3f4f6;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.gallery-folder-empty-notice {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-color);
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.gallery-thumb-btn {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111827;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  outline-offset: 2px;
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-thumb-zoom {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.gallery-thumb-btn:hover,
.gallery-thumb-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.gallery-thumb-btn:hover img,
.gallery-thumb-btn:focus-visible img {
  transform: scale(1.08);
}

.gallery-thumb-btn:hover .gallery-thumb-zoom,
.gallery-thumb-btn:focus-visible .gallery-thumb-zoom {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox Visionneuse Plein Écran */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10500;
  background: rgba(10, 15, 25, 0.95);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(85vh - 60px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: lightboxFadeIn 0.2s ease-out;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-caption {
  color: #f3f4f6;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1.25rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.lightbox-photo-comment {
  font-size: 0.9rem;
  color: #fef08a;
  font-weight: 500;
  margin-top: 0.35rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Gallery Album & Photo Comments */
.gallery-folder-desc-box {
  background: #f0fdf4;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: #14532d;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.gallery-folder-desc-box .folder-desc-icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.2;
}

/* ==========================================================================
   Official Documents & Vie Associative (Statuts, Comptes-rendus de CA / AG)
   ========================================================================== */

.official-docs-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.doc-filter-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.doc-filter-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.doc-filter-btn:hover {
  background: #f3f4f6;
  color: var(--text-main);
}

.doc-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.doc-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.doc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.doc-badge.cat-statut {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.doc-badge.cat-ca {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.doc-badge.cat-ag {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}

.doc-badge.cat-general {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.doc-date {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
}

.doc-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.doc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.doc-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.btn-doc-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  flex: 1;
  justify-content: center;
}

.btn-doc-download:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-doc-view {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  background: #f1f5f9;
  color: #334155;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-doc-view:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 10510;
  font-size: 1.5rem;
  user-select: none;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
  transform: scale(1.1);
  outline: none;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  line-height: 1;
}

.lightbox-prev:hover,
.lightbox-prev:focus-visible {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  line-height: 1;
}

.lightbox-next:hover,
.lightbox-next:focus-visible {
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 640px) {
  .gallery-lightbox {
    padding: 1rem 0.5rem;
  }
  
  .lightbox-btn {
    width: 40px;
    height: 40px;
  }
  
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
  
  .lightbox-prev {
    left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0.5rem;
  }
  
  .lightbox-caption {
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
  }
}

/* High contrast overrides for gallery */
body.a11y-high-contrast .gallery-thumb-btn {
  border: 2px solid #ffffff !important;
}

body.a11y-high-contrast .gallery-thumb-btn:focus-visible,
body.a11y-high-contrast .gallery-thumb-btn:hover {
  border: 3px solid #ffff00 !important;
}

body.a11y-high-contrast .lightbox-btn {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
  color: #ffff00 !important;
}

body.a11y-high-contrast .lightbox-caption {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
  color: #ffff00 !important;
}

/* ==========================================================================
   Event Calendar & Agenda Export ("Ajouter au calendrier")
   ========================================================================== */

.badge-cal-card {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(17, 24, 39, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.news-time-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid #fde68a;
}

.news-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.cal-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.cal-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid rgba(30, 125, 67, 0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.cal-dropdown-btn:hover,
.cal-dropdown-btn:focus-visible,
.cal-dropdown-wrap.active .cal-dropdown-btn {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(30, 125, 67, 0.25);
}

.cal-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  padding: 0.4rem;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}

.cal-dropdown-wrap.active .cal-dropdown-menu {
  display: flex;
  animation: calDropAnim 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes calDropAnim {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cal-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
}

.cal-menu-item:hover,
.cal-menu-item:focus-visible {
  background: var(--bg-alt);
  color: var(--primary);
  outline: none;
}

.cal-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Callout Box inside Modal */
.event-cal-modal-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e8f5ed 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.event-cal-modal-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.event-cal-badge-date {
  width: 50px;
  height: 52px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.cal-badge-m {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--primary);
  color: #ffffff;
  width: 100%;
  text-align: center;
  padding: 0.15rem 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-badge-d {
  font-size: 1.2rem;
  font-weight: 800;
  color: #14532d;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.event-cal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #14532d;
  margin: 0 0 0.2rem 0;
}

.event-cal-meta {
  font-size: 0.85rem;
  color: #166534;
  font-weight: 600;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.event-cal-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.btn-cal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-align: center;
}

.btn-cal-google {
  background: #ffffff;
  color: #15803d;
  border-color: #bbf7d0;
}

.btn-cal-google:hover {
  background: #15803d;
  color: #ffffff;
}

.btn-cal-ics {
  background: var(--primary);
  color: #ffffff;
}

.btn-cal-ics:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.btn-cal-outlook {
  background: #ffffff;
  color: #0369a1;
  border-color: #bae6fd;
}

.btn-cal-outlook:hover {
  background: #0284c7;
  color: #ffffff;
}

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

/* High contrast overrides */
body.a11y-high-contrast .cal-dropdown-btn,
body.a11y-high-contrast .btn-cal-action {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
  color: #ffff00 !important;
}

body.a11y-high-contrast .cal-dropdown-menu {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
}

body.a11y-high-contrast .cal-menu-item {
  color: #ffffff !important;
}

body.a11y-high-contrast .cal-menu-item:hover {
  background: #ffff00 !important;
  color: #000000 !important;
}

/* ==========================================================================
   Styles Inscriptions aux Événements (Formulaire interne & JotForm)
   ========================================================================== */
.badge-reg-card {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-event-reg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-event-reg:hover {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.btn-jotform-trigger {
  border-color: #ea580c;
  background: #fff7ed;
  color: #c2410c;
}

.btn-jotform-trigger:hover {
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.event-reg-summary-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.reg-summary-icon {
  font-size: 1.6rem;
  line-height: 1;
  background: #ffffff;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.event-reg-summary-box .reg-summary-details {
  flex: 1;
}

/* Récapitulatif de confirmation d'inscription */
.event-reg-success-box {
  animation: fadeInUp 0.3s ease-out;
}

.reg-success-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.reg-success-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.reg-success-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #065f46;
}

.reg-success-subtitle {
  margin: 0.25rem 0 0 0;
  font-size: 0.88rem;
  color: #047857;
}

.reg-recap-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.reg-recap-header {
  font-size: 0.88rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.reg-recap-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0;
}

@media (min-width: 480px) {
  .reg-recap-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.reg-recap-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #edf2f7;
}

.reg-recap-item dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.reg-recap-item dd {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  word-break: break-word;
}

.reg-recap-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.825rem;
  color: #1e40af;
  line-height: 1.45;
}

.reg-recap-notice p {
  margin: 0;
}

.reg-success-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

body.a11y-high-contrast .badge-reg-card,
body.a11y-high-contrast .btn-event-reg {
  background: #000000 !important;
  color: #00ffff !important;
  border: 2px solid #00ffff !important;
}

body.a11y-high-contrast .btn-event-reg:hover {
  background: #00ffff !important;
  color: #000000 !important;
}

body.a11y-high-contrast .read-more-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

body.a11y-high-contrast .read-more-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
}

/* ==========================================================================
   Bannière d'Information Cookies (Non intrusive, Élégante & Conforme CNIL)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 32px);
  max-width: 640px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cookie-banner-container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.cookie-banner-icon {
  font-size: 1.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cookie-banner-btn {
  padding: 0.45rem 1rem;
  font-size: 0.825rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cookie-banner-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.cookie-banner-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cookie-banner-btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
}

.cookie-banner-btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 6px rgba(30, 125, 67, 0.3);
  transform: translateY(-1px);
}

/* Accessibility: High contrast support */
body.a11y-high-contrast .cookie-banner-container {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

body.a11y-high-contrast .cookie-banner-text strong,
body.a11y-high-contrast .cookie-banner-text p {
  color: #ffffff !important;
}

body.a11y-high-contrast .cookie-banner-btn-secondary {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

body.a11y-high-contrast .cookie-banner-btn-primary {
  background: #ffff00 !important;
  color: #000000 !important;
  border: 2px solid #ffff00 !important;
  font-weight: 900 !important;
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 16px;
    width: calc(100% - 24px);
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-banner-btn {
    flex: 1;
    text-align: center;
  }
}

/* ==========================================================================
   Rich Text Formatting Styles (Public Views & Modals)
   ========================================================================== */
.text-enlarged {
  font-size: 1.22em;
  font-weight: 700;
  line-height: 1.35;
  color: inherit;
}

.text-enlarged.text-h2 {
  font-size: 1.38em;
  font-weight: 800;
  display: block;
  margin: 0.65rem 0 0.35rem 0;
  color: var(--text-dark, #111827);
}

.text-enlarged.text-h3 {
  font-size: 1.22em;
  font-weight: 800;
  display: block;
  margin: 0.5rem 0 0.25rem 0;
  color: var(--text-dark, #111827);
}

a.rich-link,
.news-full-content a,
.news-excerpt a,
.atelier-desc a,
.faq-answer a,
.about-text-content a,
.doc-desc a,
.bureau-bio a,
.callout-note-content a {
  color: var(--primary, #1e7d43);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  word-break: break-word;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a.rich-link:hover,
.news-full-content a:hover,
.news-excerpt a:hover,
.atelier-desc a:hover,
.faq-answer a:hover,
.about-text-content a:hover,
.doc-desc a:hover,
.bureau-bio a:hover,
.callout-note-content a:hover {
  color: var(--primary-dark, #14592f);
  opacity: 0.85;
}

/* ==========================================================================
   Formulaires Personnalisés & Signature Électronique Lisse (Public)
   ========================================================================== */
.custom-fb-heading {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #ede9fe;
  color: #4c1d95;
  font-size: 1.08rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.custom-fb-info {
  background: #f5f3ff;
  border-left: 4px solid #8b5cf6;
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
  color: #5b21b6;
  line-height: 1.55;
  margin: 0.25rem 0;
}

.custom-fb-field {
  display: flex;
  flex-direction: column;
}

.custom-fb-field label.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: #1e293b;
}

.custom-fb-field label.field-label .required-star {
  color: #ef4444;
  margin-left: 0.2rem;
}

.custom-fb-field .field-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.3rem;
  line-height: 1.4;
}

.custom-fb-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.custom-fb-option-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: #334155;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.custom-fb-option-item:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #4c1d95;
}

.custom-fb-option-item input {
  cursor: pointer;
  accent-color: #7c3aed;
}

.custom-fb-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: #475569;
  cursor: pointer;
  line-height: 1.45;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.custom-fb-consent:hover {
  border-color: #cbd5e1;
}

.custom-fb-consent input {
  margin-top: 0.15rem;
  cursor: pointer;
  accent-color: #7c3aed;
}

/* Zone Signature Électronique Lisse Haute Définition */
.smooth-sig-canvas-wrap {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  touch-action: none;
  user-select: none;
}

.smooth-sig-canvas-wrap:focus-within,
.smooth-sig-canvas-wrap:hover {
  border-color: #a78bfa;
}

.smooth-sig-canvas {
  display: block;
  width: 100%;
  height: 160px;
  cursor: crosshair;
  touch-action: none;
}

.sig-hint-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s ease;
}

.smooth-sig-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.75rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: #64748b;
}

.btn-sig-clear {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sig-clear:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}


