/*
 * ActionText attachment gallery styles only.
 * Trix editor CSS is loaded separately in ActiveAdmin via Sprockets.
 */

/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Custom CSS pour DomAdapt */

/* Variables de couleurs personnalisées */
:root {
  --color-primary: #1e3a8a; /* blue-900 */
  --color-primary-light: #3b82f6; /* blue-500 */
  --color-secondary: #059669; /* emerald-600 */
  --color-accent: #f59e0b; /* amber-500 */
}

/* Typography - Optimisé pour seniors et accessibilité */
html {
  font-size: 100%; /* Base 16px garantie */
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.125rem; /* 18px — taille minimum pour seniors */
  line-height: 1.7; /* Espacement généreux entre les lignes */
  letter-spacing: 0.01em; /* Légère aération entre les lettres */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1a1a2e; /* Noir doux, moins agressif que le noir pur */
}

@media (max-width: 639px) {
  body {
    font-size: 1.0625rem; /* 17px sur mobile */
  }
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
}

h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
}

/* Skip link - Accessibilité navigation clavier */
/* Technique clip/offscreen : masqué visuellement mais accessible au clavier */
.skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  z-index: 9999 !important;
}

.skip-link:focus {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  background: #1e3a8a !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 0 0 0.5rem 0 !important;
  outline: 3px solid #fbbf24 !important;
  outline-offset: 3px !important;
  z-index: 9999 !important;
  clip: auto !important;
}

/* Custom button styles */
.btn-primary {
  background-color: #1e3a8a;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-height: 48px;
}

.btn-primary:hover {
  background-color: #1e40af;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.btn-primary:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
  border: 3px solid #1e3a8a;
  color: #1e3a8a;
  background-color: transparent;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  min-height: 48px;
}

.btn-secondary:hover {
  background-color: #1e3a8a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.btn-secondary:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4);
}

.btn-outline {
  border: 3px solid white;
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  min-height: 48px;
  /* Accessibilité : zone cliquable minimum 44x44px */
}

.btn-outline:hover {
  background-color: white;
  color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-outline:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4);
}

/* Card styles - optimized for accessibility */
.card {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card:focus-within {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.card-content {
  padding: 2rem;
}

.card-hover {
  transition: all 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
}

/* Container custom */
.container-custom {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Section spacing */
.section-py {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .section-py {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

/* Hero section - fond clair avec motifs subtils */
.hero-section-bg {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #f0fdf4 100%);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
}

/* Conteneur de contenu hero avec fond blanc */
.hero-content-box {
  background: white;
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .hero-content-box {
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
}

/* Bouton CTA Hero - contraste maximal */
.btn-cta-hero {
  background-color: #1e3a8a;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(30, 58, 138, 0.25);
  min-height: 48px;
  border: 3px solid #1e3a8a;
}

.btn-cta-hero:hover {
  background-color: #1e40af;
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.35);
  transform: translateY(-2px);
  border-color: #1e40af;
}

.btn-cta-hero:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-actions__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  text-align: center;
  line-height: 1.3;
  padding: 1.125rem 1.5rem;
}

.hero-actions__button span {
  color: inherit;
  text-decoration: none;
}

.hero-actions__icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex-shrink: 0;
}

.hero-actions__button--secondary {
  background-color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: stretch;
  }

  .hero-actions__button {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 639px) {
  .hero-actions__button {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
}

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

/* Navigation links - optimized for seniors */
.nav-link {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e3a8a;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid transparent;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e3a8a 0%, #059669 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #1e3a8a;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-color: rgba(30, 58, 138, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.15);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
  color: #1e3a8a;
}

.nav-link-mobile {
  padding: 1rem 1.25rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.nav-link-mobile:hover {
  color: #1e3a8a;
  background-color: #eff6ff;
}

.nav-link-mobile:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
  color: #1e3a8a;
}

/* Focus states */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e3a8a;
}

/* Animation utilities - reduced motion for accessibility */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .animate-fade-in {
    animation: fadeIn 0.8s ease-out;
  }
}

/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Rich text content styling - improved readability for seniors */
.rich-text {
  font-size: 1.125rem; /* 18px base pour contenu */
  max-width: 700px;
  line-height: 1.75;
}

/* Paragraphes - lisibilité optimisée */
p {
  line-height: 1.7;
  margin-bottom: 1.2em;
}

/* Liens toujours soulignés pour accessibilité */
a {
  color: #2563eb;
  text-decoration: underline;
}

a:hover {
  color: #1e40af;
}

/* Les liens CTA ne doivent pas hériter du soulignement global */
.btn-primary,
.btn-secondary,
.btn-cta-hero,
.simulator-cta__button,
.business-cta__secondary,
.mobile-sticky-cta__link,
.nav-link,
.nav-link-mobile {
  text-decoration: none;
}

.btn-primary,
.btn-cta-hero,
.simulator-cta__button,
.mobile-sticky-cta__link {
  color: white;
}

.btn-secondary,
.business-cta__secondary,
.nav-link,
.nav-link-mobile {
  color: #1e3a8a;
}

.btn-secondary:hover,
.business-cta__secondary:hover,
.nav-link:hover,
.nav-link-mobile:hover {
  color: white;
}

/* Listes */
li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

/* Tableaux - cellules aérées */
table {
  font-size: 1rem;
  line-height: 1.5;
}

th {
  font-weight: 600;
}

td, th {
  padding: 12px 16px;
}

/* Texte secondaire — jamais en dessous de 16px */
.text-secondary, .disclaimer, .meta {
  font-size: 0.9rem;
  color: #6b7280;
}

.rich-text h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: #1a1a2e;
  line-height: 1.4;
}

.rich-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a1a2e;
  line-height: 1.4;
}

.rich-text p {
  margin-bottom: 1.2em;
  color: #1a1a2e;
  line-height: 1.7;
}

.rich-text ul, .rich-text ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style-type: disc;
}

.rich-text li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.rich-text a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

.rich-text a:hover {
  color: #1e40af;
  background-color: #eff6ff;
}

.rich-text a:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-primary {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

/* Alert styles */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #065f46;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-info {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Tailwind utility classes replacement */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.text-white {
  color: white;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-bold {
  font-weight: 700;
}

.w-10 {
  width: 2.5rem !important;
}

.h-10 {
  height: 2.5rem !important;
}

.bg-gray-900 {
  background-color: #111827;
}

.text-gray-300 {
  color: #d1d5db;
}

.mt-20 {
  margin-top: 5rem;
}

.bg-white {
  background-color: white;
}

/* Prose styles for article content */
.prose {
  color: #1a1a2e;
  max-width: 700px;
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.prose h1 {
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 0.8em;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a2e;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 0.8em;
  line-height: 1.4;
  font-weight: 600;
  color: #1a1a2e;
}

.prose h3 {
  font-size: 1.3rem;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.4;
  font-weight: 600;
  color: #1a1a2e;
}

.prose p {
  margin-top: 1.2em;
  margin-bottom: 1.2em;
  line-height: 1.7;
  max-width: 700px; /* Limiter la largeur de lecture pour le confort */
}

.prose ul, .prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.prose strong {
  color: #1a1a2e;
  font-weight: 600;
}

.prose a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #1e40af;
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: #1a1a2e;
  border-left-width: 0.25rem;
  border-left-color: #e5e7eb;
  quotes: "\201C""\201D""\2018""\2019";
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
}

.prose code {
  color: #111827;
  font-weight: 600;
  font-size: 0.875em;
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
}

.prose pre {
  color: #e5e7eb;
  background-color: #1f2937;
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.375rem;
  padding: 0.8571429em 1.1428571em;
}

.prose img {
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
}

.prose table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
  line-height: 1.7142857;
}

.prose thead {
  color: #111827;
  font-weight: 600;
  border-bottom-width: 1px;
  border-bottom-color: #d1d5db;
}

.prose thead th {
  vertical-align: bottom;
  padding-right: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-left: 0.5714286em;
}

.prose tbody tr {
  border-bottom-width: 1px;
  border-bottom-color: #e5e7eb;
}

.prose tbody td {
  vertical-align: baseline;
  padding-top: 0.5714286em;
  padding-right: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-left: 0.5714286em;
}

/* Not-prose: reset prose styles for embedded components (CTA, etc.) */
.prose :where(.not-prose, .not-prose *) {
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  color: revert;
  text-decoration: revert;
  margin: revert;
  padding: revert;
  list-style-type: revert;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient utility for buttons */
.bg-gradient-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

/* ============================================
   SimulatorInContentCTA - CTA in-article
   ============================================ */
.simulator-cta {
  border-radius: 1.25rem;
}

.simulator-cta__inner {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 36%),
    linear-gradient(180deg, #f8fbff 0%, #f7fbf9 100%);
  border: 1px solid #d8e5f2;
  border-radius: 1.25rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 1.5rem;
}

.simulator-cta__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.simulator-cta__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.simulator-cta__copy {
  max-width: 42rem;
}

.simulator-cta__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
}

.simulator-cta__icon svg {
  width: 24px;
  height: 24px;
}

.simulator-cta__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #172554;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.simulator-cta__text {
  font-size: 1rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

.simulator-cta__text strong {
  color: #1e3a8a;
}

.simulator-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white !important;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  padding: 0.9rem 1.2rem;
  border-radius: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.22);
  min-height: 46px;
  text-decoration: none !important;
}

.simulator-cta__button:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(5, 150, 105, 0.28);
  color: white !important;
}

.simulator-cta__button:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4);
}

.business-cta__eyebrow {
  margin: 0;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.business-cta__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.3;
  color: #1e3a8a !important;
  text-decoration: none !important;
  border-width: 2px;
  border-color: #c7d2fe;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.business-cta__secondary:hover {
  color: white !important;
  border-color: #1e3a8a;
}

@media (min-width: 900px) {
  .simulator-cta__body {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .business-cta__actions {
    justify-content: flex-end;
    min-width: 18rem;
  }
}

/* CTA injecte dans le flux d'un article: version plus compacte */
.prose .simulator-cta {
  margin-top: 1.35rem;
  margin-bottom: 1.35rem;
}

.prose .simulator-cta__inner {
  padding: 1.1rem 1.2rem;
  gap: 1rem;
}

.prose .simulator-cta__header {
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.prose .simulator-cta__icon {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
}

.prose .simulator-cta__icon svg {
  width: 20px;
  height: 20px;
}

.prose .business-cta__eyebrow {
  font-size: 0.72rem;
}

.prose .simulator-cta__heading {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.prose .simulator-cta__text {
  font-size: 0.92rem;
  line-height: 1.5;
}

.prose .simulator-cta__button,
.prose .business-cta__secondary {
  min-height: 42px;
  font-size: 0.94rem;
  padding: 0.75rem 1rem;
}

@media (min-width: 900px) {
  .prose .business-cta__actions {
    min-width: 14rem;
  }
}

.business-links-grid {
  display: grid;
  gap: 1rem;
}

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

.business-links-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  text-decoration: none;
  transition: all 0.25s ease;
}

.business-links-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.08);
  transform: translateY(-2px);
}

.business-links-card__label {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.mobile-sticky-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
}

.mobile-sticky-cta__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.875rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.18);
}

.mobile-sticky-cta__link:hover {
  color: white;
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

.mobile-sticky-cta__label {
  white-space: nowrap;
}

/* ============================================
   PartnersLogos - Trust Bar
   ============================================ */
.partners-bar {
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.partners-bar__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .partners-bar__list {
    gap: 3rem;
  }
}

.partners-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-bar__logo {
  max-height: 44px;
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
}

.partners-bar__logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

.partners-bar__disclaimer {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1.25rem;
  margin-bottom: 0;
  line-height: 1.5;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FundingExampleCard - Cas pratique financement
   ============================================ */
.funding-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.funding-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-bottom: 1px solid #e5e7eb;
}

.funding-card__header-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e3a8a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.funding-card__header-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #059669;
  margin-bottom: 0.125rem;
}

.funding-card__header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.funding-card__body {
  padding: 2rem;
}

/* Lignes style ticket de caisse */
.funding-card__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.funding-card__line-label {
  font-size: 1rem;
  color: #374151;
}

.funding-card__line-amount {
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 1rem;
}

.funding-card__line-amount--striked {
  color: #6b7280;
  text-decoration: line-through;
}

.funding-card__line--highlight {
  background-color: #f0fdf4;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0.25rem -1rem;
}

@media (min-width: 640px) {
  .funding-card__line--highlight {
    margin: 0.25rem 0;
  }
}

.funding-card__line-amount--funded {
  color: #059669;
  font-weight: 700;
  font-size: 1.25rem;
}

.funding-card__separator {
  border-top: 2px dashed #d1d5db;
  margin: 0.5rem 0;
}

.funding-card__line--total {
  padding-top: 1rem;
}

.funding-card__line--total .funding-card__line-label {
  font-weight: 700;
  color: #111827;
  font-size: 1.125rem;
}

.funding-card__line-amount--total {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

/* CTA */
.funding-card__cta {
  text-align: center;
}

/* Mention légale */
.funding-card__footer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

.funding-card__footer p {
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   ResourceCategoryCard - Centre de Ressources
   ============================================ */
.resource-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.resource-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.resource-card:focus-within {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.resource-card__header {
  padding: 2rem 2rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.resource-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-card__icon--aides {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1e3a8a;
}

.resource-card__icon--travaux {
  background: linear-gradient(135deg, #f0fdf4, #d1fae5);
  color: #059669;
}

.resource-card__icon--aidant {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.resource-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

/* ============================================
   Anah Monitoring Widget
   ============================================ */
.anah-widget {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe7f5;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 1.25rem;
}

.anah-widget__header {
  margin-bottom: 1rem;
}

.anah-widget__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.anah-widget__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.anah-widget__intro {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #475569;
}

.anah-widget__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.anah-widget__facts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.anah-widget__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.anah-widget__status--open {
  background: #ecfdf5;
  color: #047857;
}

.anah-widget__status--closed {
  background: #fef2f2;
  color: #b91c1c;
}

.anah-widget__status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}

.anah-widget__fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.anah-widget__fact-label {
  font-size: 0.85rem;
  color: #64748b;
}

.anah-widget__fact-value {
  font-size: 1.1rem;
  line-height: 1.3;
  color: #0f172a;
}

.anah-widget__updated {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.anah-widget__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.anah-widget__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 0.8rem 1.1rem;
  border-radius: 0.9rem;
  background: #1e3a8a;
  color: white;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.16);
}

.anah-widget__cta:hover {
  background: #1e40af;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(30, 58, 138, 0.2);
}

.anah-widget__cta:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.anah-widget__note {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.anah-widget--homepage {
  padding: 1.5rem 1.75rem;
}

.anah-widget--homepage .anah-widget__body {
  gap: 1.1rem;
}

@media (min-width: 768px) {
  .anah-widget--homepage .anah-widget__body {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .anah-widget--homepage .anah-widget__actions {
    align-items: flex-end;
    text-align: right;
  }
}

.anah-widget--sidebar {
  padding: 1.1rem;
  border-radius: 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.anah-widget--sidebar .anah-widget__header {
  margin-bottom: 0.85rem;
}

.anah-widget--sidebar .anah-widget__title {
  font-size: 1.05rem;
}

.anah-widget--sidebar .anah-widget__fact-value {
  font-size: 1rem;
}

.anah-widget--sidebar .anah-widget__cta,
.anah-widget--inline .anah-widget__cta {
  width: 100%;
}

.anah-widget--inline {
  padding: 1.15rem 1.25rem;
}

.anah-widget--inline .anah-widget__title {
  font-size: 1.1rem;
}

.resource-card__desc {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.5;
}

.resource-card__articles {
  padding: 0 2rem 2rem;
  border-top: 1px solid #f3f4f6;
  margin-top: 0;
}

.resource-card__article-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.resource-card__article-link:last-child {
  border-bottom: none;
}

.resource-card__article-link:hover {
  color: #1e3a8a;
}

.resource-card__article-link svg {
  flex-shrink: 0;
  margin-right: 0.5rem;
  color: #6b7280;
  transition: color 0.2s ease;
}

.resource-card__article-link:hover svg {
  color: #1e3a8a;
}

/* ============================================
   Tabs - Cartes ressources (style homepage)
   ============================================ */
.tabs-card {
  position: relative;
  overflow: visible !important;
}

.tabs-card--active {
  border: 3px solid #3b82f6 !important;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15) !important;
}

.tabs-card--active::after {
  content: "";
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  background-color: #059669;
  border: 3px solid white;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 22px 22px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.5);
  z-index: 10;
}

/* ============================================
   ArticleCard - Carte d'article réutilisable
   ============================================ */
.article-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid #f3f4f6;
}

.article-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.article-card:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

.article-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f3f4f6;
}

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

.article-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.1875rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e40af;
  background-color: #eff6ff;
  border-radius: 9999px;
  margin-bottom: 0.625rem;
}

.article-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.article-card:hover .article-card__title {
  color: #1e3a8a;
}

.article-card__excerpt {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
}

.article-card__date {
  font-size: 0.875rem;
  color: #6b7280;
}
