@tailwind base;
@tailwind components;
@tailwind utilities;

/* Champs de formulaire du back-office */
@layer components {
  .admin-field {
    @apply w-full border border-gray-300 rounded-lg text-sm transition focus:ring-2 focus:ring-lime-200 focus:border-lime-500 focus:outline-none;
  }
  .admin-input    { @apply admin-field h-10 px-3; }
  .admin-textarea { @apply admin-field px-3 py-2; }
  .admin-select   { @apply admin-field h-10 pl-3 pr-9 bg-white appearance-none cursor-pointer; }
}

/* Base styles */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #212121;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* Stat numbers */
.stat-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Card hover */
.card-hover {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Nav */
.nav-blur {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-scrolled {
  background: rgba(33, 33, 33, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #c0cf23 0%, #9ab01a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button styles */
.btn-primary {
  background: #c0cf23;
  color: #212121;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #a7b51c;
  box-shadow: 0 10px 40px -10px rgba(192, 207, 35, 0.5);
  transform: translateY(-2px);
}

.btn-dark {
  background: #212121;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Hero gradient mesh */
.hero-mesh {
  background:
    radial-gradient(ellipse 100% 80% at 60% 0%, rgba(192, 207, 35, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(192, 207, 35, 0.05), transparent 50%);
}

/* Diagonal section */
.diagonal-section {
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  margin-top: -5%;
  padding-top: calc(5% + 5rem);
}

/* Stats card glow */
.stats-card {
  box-shadow:
    0 0 0 1px rgba(192, 207, 35, 0.1),
    0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Book/Magazine shadow */
.book-shadow {
  box-shadow:
    8px 8px 20px rgba(0, 0, 0, 0.25),
    4px 4px 8px rgba(0, 0, 0, 0.15),
    inset -2px 0 4px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-2deg);
  transition: all 0.3s ease;
}

.book-shadow:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-4px);
  box-shadow:
    12px 12px 30px rgba(0, 0, 0, 0.3),
    6px 6px 12px rgba(0, 0, 0, 0.2);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f7f7f8; }
::-webkit-scrollbar-thumb { background: #d9d9de; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #b8b8c0; }

/* ══════════════════════════════════════════════════════════════
   CONFIGURATOR STYLES
   ══════════════════════════════════════════════════════════════ */

/* Step indicator */
.step-indicator {
  transition: all 0.3s ease;
}

.step-indicator.active {
  transform: scale(1.05);
}

/* Form steps */
.form-step {
  display: none;
  animation: fadeInStep 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
  display: block;
}

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

/* Selection cards */
.selection-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.selection-card:hover {
  border-color: #c0cf23;
  transform: translateY(-2px);
}

.selection-card.selected {
  border-color: #c0cf23;
  background: #fafbe8;
  box-shadow: 0 0 0 2px #c0cf23;
}

.selection-card.selected .check-icon {
  opacity: 1;
  transform: scale(1);
}

.check-icon {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  height: 8px;
  background: #eeeef0;
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  background: #c0cf23;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(192, 207, 35, 0.4);
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: #c0cf23;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(192, 207, 35, 0.4);
}

/* France departments map */
.departement {
  fill: #eeeef0;
  stroke: #ffffff;
  stroke-width: 1;
  transition: all 0.15s ease;
  cursor: pointer;
}

.departement:hover {
  fill: #dde656;
}

.departement.selected {
  fill: #c0cf23;
}

/* Region groups - subtle region borders */
.region {
  stroke: #d9d9de;
  stroke-width: 0.5;
}

/* Form inputs */
.form-input {
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #c0cf23;
  box-shadow: 0 0 0 3px rgba(192, 207, 35, 0.15);
}
/* Blog article body — styles appliques au HTML rendu depuis le Markdown
   (BlogPosts::MarkdownRenderer).
   Optimise pour la lecture : 19-20px de base, line-height genereux, espacements aeres. */
.article-content {
  @apply text-gray-700;
  font-size: 1.1875rem;       /* 19px */
  line-height: 1.75;
}
.article-content > *:first-child { margin-top: 0; }
.article-content > * + * { @apply mt-6; }
.article-content h1 { @apply text-4xl font-bold text-gray-900 mt-14 mb-5 leading-tight tracking-tight; }
.article-content h2 { @apply text-3xl font-bold text-gray-900 mt-12 mb-5 leading-tight tracking-tight; }
.article-content h3 { @apply text-2xl font-bold text-gray-900 mt-10 mb-4 leading-snug; }
.article-content h4 { @apply text-xl font-bold text-gray-900 mt-8 mb-3; }

/* Anchor links sur les headings (visibles au hover du heading) */
.article-content h2,
.article-content h3,
.article-content h4 {
  position: relative;
  scroll-margin-top: 100px; /* compense la navbar fixed lors d'un saut #anchor */
}
.article-content .anchor-link {
  @apply text-gray-300 hover:text-lime-600 ml-2 font-normal no-underline;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.article-content h2:hover .anchor-link,
.article-content h3:hover .anchor-link,
.article-content h4:hover .anchor-link,
.article-content .anchor-link:focus {
  opacity: 1;
}

/* Drop cap (lettrine) sur le premier paragraphe du premier wrapper.
   Span injecte cote serveur par BlogPosts::ContentDecorator. */
.article-content.has-drop-cap .drop-cap {
  @apply text-gray-900 font-bold;
  font-size: 4.5rem;
  line-height: 0.85;
  float: left;
  margin: 0.25rem 0.75rem 0 0;
  padding: 0;
}
.article-content p  { line-height: 1.75; }
.article-content a  { @apply text-lime-700 underline underline-offset-4 decoration-lime-300 hover:text-lime-800 hover:decoration-lime-500; }
.article-content strong { @apply text-gray-900 font-semibold; }
.article-content ul, .article-content ol { @apply pl-6 space-y-2; }
.article-content ul { @apply list-disc; }
.article-content ol { @apply list-decimal; }
.article-content li { line-height: 1.7; }
.article-content blockquote {
  @apply border-l-4 border-lime-400 pl-5 italic text-gray-600 my-8;
  font-size: 1.25rem;
}
.article-content img,
.article-content figure {
  @apply rounded-lg my-8 max-w-full h-auto;
}
.article-content figcaption { @apply text-sm text-gray-500 italic text-center mt-2; }
.article-content pre {
  @apply bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto text-sm my-8;
}
.article-content code {
  @apply bg-gray-100 text-gray-800 px-1.5 py-0.5 rounded text-sm font-mono;
}
.article-content pre code { @apply bg-transparent text-gray-100 p-0; }
.article-content hr { @apply border-gray-200 my-10; }
.article-content table {
  @apply w-full text-left border-collapse my-8;
  font-size: 1rem;
}
.article-content thead th { @apply bg-gray-50 text-gray-900 font-semibold border-b-2 border-gray-200 px-4 py-3; }
.article-content tbody td { @apply border-b border-gray-100 px-4 py-3 align-top; }


/* ============================================================
   Theme Nexio — scope a [data-theme="nexio"] (page /etudes only)
   Bascule la palette lime DPS vers le gradient cyan/violet Nexio
   et adapte le contenu light vers un fond dark Nexio.
   Place a la fin du fichier pour gagner la cascade contre les
   utilities Tailwind a specificite egale.
   ============================================================ */

[data-theme="nexio"] {
  background: #0B0B14;
  color: #fff;
  position: relative;
  overflow-x: hidden;
}

/* Grille subtile en arriere-plan */
[data-theme="nexio"]::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 183, 224, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
/* Le ::before grid est en z-index: 0, le contenu naturel passe au-dessus sans override. */

/* --- Override gradient-text (defini en lime plus haut) en gradient Nexio --- */
[data-theme="nexio"] .gradient-text {
  background: linear-gradient(135deg, #00B7E0 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Accents lime DPS -> gradient/teintes Nexio --- */
[data-theme="nexio"] .text-lime-400,
[data-theme="nexio"] .text-lime-500,
[data-theme="nexio"] .text-lime-700 { color: #A78BFA; }
[data-theme="nexio"] .text-lime-600 { color: #00B7E0; }

[data-theme="nexio"] .bg-lime-400,
[data-theme="nexio"] .bg-lime-500 { background: linear-gradient(135deg, #00B7E0 0%, #7C3AED 100%); color: white; }
[data-theme="nexio"] .hover\:bg-lime-300:hover,
[data-theme="nexio"] .hover\:bg-lime-600:hover { background: linear-gradient(135deg, #33C6E6 0%, #9333EA 100%); }
[data-theme="nexio"] .bg-lime-400\/5  { background-color: rgba(124, 58, 237, 0.08); }
[data-theme="nexio"] .bg-lime-400\/10 { background-color: rgba(0, 183, 224, 0.12); }
[data-theme="nexio"] .bg-lime-400\/15 { background-color: rgba(0, 183, 224, 0.18); }
[data-theme="nexio"] .bg-lime-400\/20 { background-color: rgba(124, 58, 237, 0.22); }
[data-theme="nexio"] .bg-lime-400\/25 { background-color: rgba(124, 58, 237, 0.28); }
[data-theme="nexio"] .bg-lime-400\/30 { background-color: rgba(124, 58, 237, 0.32); }
[data-theme="nexio"] .bg-lime-500\/10 { background-color: rgba(124, 58, 237, 0.12); }
[data-theme="nexio"] .bg-lime-500\/20 { background-color: rgba(124, 58, 237, 0.22); }
[data-theme="nexio"] .bg-lime-50 { background-color: rgba(124, 58, 237, 0.10); }
[data-theme="nexio"] .bg-lime-200 { background-color: rgba(167, 139, 250, 0.25); }

[data-theme="nexio"] .border-lime-400 { border-color: #7C3AED; }
[data-theme="nexio"] .border-lime-400\/20 { border-color: rgba(124, 58, 237, 0.30); }
[data-theme="nexio"] .border-lime-100,
[data-theme="nexio"] .border-lime-200 { border-color: rgba(167, 139, 250, 0.30); }
[data-theme="nexio"] .hover\:border-lime-400:hover { border-color: #A78BFA; }

[data-theme="nexio"] [class*="from-lime"][class*="to-lime"] {
  background-image: linear-gradient(to right, #00B7E0 0%, #7C3AED 100%);
}

[data-theme="nexio"] .focus\:ring-lime-200:focus { --tw-ring-color: rgba(0, 183, 224, 0.35); }
[data-theme="nexio"] .focus\:border-lime-500:focus { border-color: #7C3AED; }

/* --- Boutons --- */
[data-theme="nexio"] .btn-primary {
  background: linear-gradient(135deg, #00B7E0 0%, #7C3AED 100%);
  color: white;
  box-shadow: 0 10px 30px -8px rgba(124, 58, 237, 0.55);
}
[data-theme="nexio"] .btn-primary:hover {
  background: linear-gradient(135deg, #33C6E6 0%, #9333EA 100%);
  box-shadow: 0 16px 44px -8px rgba(124, 58, 237, 0.70);
}
[data-theme="nexio"] .btn-outline {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
[data-theme="nexio"] .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.5);
}

/* --- Backgrounds --- */
[data-theme="nexio"] .bg-dark-50  { background-color: rgba(255, 255, 255, 0.04); }
[data-theme="nexio"] .bg-dark-100 { background-color: rgba(255, 255, 255, 0.06); }
[data-theme="nexio"] .bg-dark-900 { background-color: rgba(11, 11, 20, 0.92); }
/* bg-white des grandes sections (section.bg-white) => fondu dans le theme dark */
[data-theme="nexio"] section.bg-white { background-color: transparent; }
[data-theme="nexio"] .peer-checked\:bg-lime-50 { background-color: rgba(167, 139, 250, 0.95); }

/* === CARDS (bg-white + border-2 + rounded-2xl) => surface violet pale + texte violet fonce === */
[data-theme="nexio"] .bg-white.border-2.rounded-2xl,
[data-theme="nexio"] .bg-white.border.rounded-2xl,
[data-theme="nexio"] .bg-white.border-2.rounded-xl,
[data-theme="nexio"] .bg-white.border.rounded-xl {
  background-color: rgba(199, 184, 250, 0.95);
  border-color: rgba(124, 58, 237, 0.30);
}
[data-theme="nexio"] .bg-white.border-2.rounded-2xl .text-dark-900,
[data-theme="nexio"] .bg-white.border.rounded-2xl .text-dark-900,
[data-theme="nexio"] .bg-white.border-2.rounded-xl .text-dark-900,
[data-theme="nexio"] .bg-white.border.rounded-xl .text-dark-900 { color: #1E1B4B; }
[data-theme="nexio"] .bg-white.border-2.rounded-2xl .text-dark-800,
[data-theme="nexio"] .bg-white.border.rounded-2xl .text-dark-800,
[data-theme="nexio"] .bg-white.border-2.rounded-xl .text-dark-800,
[data-theme="nexio"] .bg-white.border.rounded-xl .text-dark-800 { color: #2E1065; }
[data-theme="nexio"] .bg-white.border-2.rounded-2xl .text-dark-700,
[data-theme="nexio"] .bg-white.border.rounded-2xl .text-dark-700,
[data-theme="nexio"] .bg-white.border-2.rounded-xl .text-dark-700,
[data-theme="nexio"] .bg-white.border.rounded-xl .text-dark-700 { color: #312E81; }
[data-theme="nexio"] .bg-white.border-2.rounded-2xl .text-dark-600,
[data-theme="nexio"] .bg-white.border.rounded-2xl .text-dark-600,
[data-theme="nexio"] .bg-white.border-2.rounded-xl .text-dark-600,
[data-theme="nexio"] .bg-white.border.rounded-xl .text-dark-600 { color: #3730A3; }
[data-theme="nexio"] .bg-white.border-2.rounded-2xl .text-dark-500,
[data-theme="nexio"] .bg-white.border.rounded-2xl .text-dark-500,
[data-theme="nexio"] .bg-white.border-2.rounded-xl .text-dark-500,
[data-theme="nexio"] .bg-white.border.rounded-xl .text-dark-500 { color: #4338CA; }
[data-theme="nexio"] .bg-white.border-2.rounded-2xl .text-dark-400,
[data-theme="nexio"] .bg-white.border.rounded-2xl .text-dark-400,
[data-theme="nexio"] .bg-white.border-2.rounded-xl .text-dark-400,
[data-theme="nexio"] .bg-white.border.rounded-xl .text-dark-400 { color: #4F46E5; }
[data-theme="nexio"] .bg-white.border-2.rounded-2xl .text-lime-700,
[data-theme="nexio"] .bg-white.border.rounded-2xl .text-lime-700,
[data-theme="nexio"] .bg-white.border-2.rounded-xl .text-lime-700,
[data-theme="nexio"] .bg-white.border.rounded-xl .text-lime-700 { color: #7C3AED; }

/* === HOMOGÉNÉISATION DES ÉLÉMENTS INTERNES DES CARDS === */

/* Badges colorés à l'intérieur des cards (ex: "-60%", "EARLY BIRD") */
[data-theme="nexio"] .bg-white.border-2.rounded-xl .bg-lime-100,
[data-theme="nexio"] .bg-white.border-2.rounded-2xl .bg-lime-100 { background-color: rgba(124, 58, 237, 0.20); }
[data-theme="nexio"] .bg-white.border-2.rounded-xl .text-lime-800,
[data-theme="nexio"] .bg-white.border-2.rounded-2xl .text-lime-800 { color: #5B21B6; }

/* Mini-thumbnail document (rectangle illustration) — fond + lignes placeholder en violet pâle */
[data-theme="nexio"] .bg-white.border-2.rounded-xl .bg-dark-50,
[data-theme="nexio"] .bg-white.border-2.rounded-2xl .bg-dark-50 { background-color: rgba(255, 255, 255, 0.60); }
[data-theme="nexio"] .bg-white.border-2.rounded-xl .bg-dark-200,
[data-theme="nexio"] .bg-white.border-2.rounded-2xl .bg-dark-200 { background-color: rgba(124, 58, 237, 0.25); }

/* Barre supérieure du mini-thumbnail (gradient lime ou gris selon année) — homogénéise en cyan/violet */
[data-theme="nexio"] [class*="from-dark-3"][class*="to-dark-4"],
[data-theme="nexio"] [class*="from-dark-300"][class*="to-dark-400"] {
  background-image: linear-gradient(to right, #00B7E0 0%, #7C3AED 100%);
}

/* Bouton "+" (état non sélectionné) sur les cards à choisir */
[data-theme="nexio"] label.cursor-pointer .bg-dark-100 { background-color: rgba(124, 58, 237, 0.20); }
[data-theme="nexio"] label.cursor-pointer .bg-dark-100.text-dark-500,
[data-theme="nexio"] label.cursor-pointer .bg-dark-100 svg { color: #4338CA; }

/* Stepper wizard (Formule / Compléments / Envoi) — états inactifs en violet pâle */
[data-theme="nexio"] .step-circle { background-color: rgba(167, 139, 250, 0.20); color: rgba(167, 139, 250, 0.95); }
[data-theme="nexio"] .step-label { color: rgba(167, 139, 250, 0.80); }
/* Ligne de connexion entre les steps */
[data-theme="nexio"] [data-study-form-target="stepIndicator"] + .bg-dark-200 { background-color: rgba(167, 139, 250, 0.25); }

/* Navbar Nexio : dark opaque solide, fine bordure violette discrète en bas */
[data-theme="nexio"] nav#navbar {
  background-color: #0B0B14;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.20);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.5), 0 8px 24px -12px rgba(124, 58, 237, 0.15);
}

/* --- Couleurs de texte --- */
[data-theme="nexio"] .text-dark-900 { color: #ffffff; }
[data-theme="nexio"] .text-dark-800 { color: rgba(255, 255, 255, 0.92); }
[data-theme="nexio"] .text-dark-700 { color: rgba(255, 255, 255, 0.85); }
[data-theme="nexio"] .text-dark-600 { color: rgba(255, 255, 255, 0.75); }
[data-theme="nexio"] .text-dark-500 { color: rgba(255, 255, 255, 0.65); }
[data-theme="nexio"] .text-dark-400 { color: rgba(255, 255, 255, 0.55); }
[data-theme="nexio"] .text-dark-300 { color: rgba(255, 255, 255, 0.40); }
[data-theme="nexio"] .text-dark-200 { color: rgba(255, 255, 255, 0.25); }
[data-theme="nexio"] .text-dark-100 { color: rgba(255, 255, 255, 0.15); }
[data-theme="nexio"] .hover\:text-dark-900:hover { color: #fff; }

/* --- Bordures --- */
[data-theme="nexio"] .border-dark-100 { border-color: rgba(255, 255, 255, 0.08); }
[data-theme="nexio"] .border-dark-200 { border-color: rgba(255, 255, 255, 0.12); }
[data-theme="nexio"] .border-dark-300 { border-color: rgba(255, 255, 255, 0.18); }
[data-theme="nexio"] .border-dark-400 { border-color: rgba(255, 255, 255, 0.25); }
[data-theme="nexio"] .hover\:border-dark-400:hover,
[data-theme="nexio"] .hover\:border-dark-900:hover { border-color: rgba(167, 139, 250, 0.55); }
[data-theme="nexio"] .peer-checked\:border-lime-400 { border-color: #A78BFA; }

/* --- Hero mesh --- */
[data-theme="nexio"] .hero-mesh {
  background:
    radial-gradient(ellipse at top right, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(0, 183, 224, 0.18), transparent 55%);
}

/* --- Logo 5P glow --- */
[data-theme="nexio"] .logo-5p-hero {
  filter: drop-shadow(0 20px 50px rgba(124, 58, 237, 0.45));
}

/* --- Inputs / forms : glass dark + texte clair --- */
[data-theme="nexio"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
[data-theme="nexio"] select,
[data-theme="nexio"] textarea {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
[data-theme="nexio"] input::placeholder,
[data-theme="nexio"] textarea::placeholder { color: rgba(255, 255, 255, 0.40); }
[data-theme="nexio"] label { color: rgba(255, 255, 255, 0.92); }

/* Bouton "Precedent" du wizard : glass dark au lieu de blanc plein */
[data-theme="nexio"] button[data-study-form-target="prevBtn"] {
  background-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="nexio"] button[data-study-form-target="prevBtn"]:hover {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: rgba(167, 139, 250, 0.55);
  color: #fff;
}

/* Cards selectionnees (peer-checked) : glow violet */
[data-theme="nexio"] .peer:checked + .h-full,
[data-theme="nexio"] .peer:checked ~ .h-full {
  background-color: rgba(124, 58, 237, 0.18);
  border-color: #A78BFA;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.45), 0 10px 30px -10px rgba(124, 58, 237, 0.40);
}

/* ============================================================
   Theme Agryco — scope a [data-theme="agryco"] (lead magnets ebook)
   Co-branding Agryco Services : jaune tournesol #FFD302 + ink
   #343B45. Variables CSS pour reutilisation, utilities pour
   coller au pattern Tailwind.
   ============================================================ */

[data-theme="agryco"] {
  --agryco-yellow: #FFD302;
  --agryco-yellow-soft: rgba(255, 211, 2, 0.12);
  --agryco-yellow-border: rgba(255, 211, 2, 0.45);
  --agryco-ink: #343B45;
}

[data-theme="agryco"] .text-agryco-ink { color: var(--agryco-ink); }
[data-theme="agryco"] .text-agryco-yellow { color: var(--agryco-yellow); }
[data-theme="agryco"] .bg-agryco-yellow { background-color: var(--agryco-yellow); }
[data-theme="agryco"] .bg-agryco-yellow-soft { background-color: var(--agryco-yellow-soft); }
[data-theme="agryco"] .bg-agryco-ink { background-color: var(--agryco-ink); }
[data-theme="agryco"] .border-agryco-yellow { border-color: var(--agryco-yellow); }
[data-theme="agryco"] .ring-agryco-yellow { --tw-ring-color: var(--agryco-yellow); }
/*
 * 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.
 *


 */

/* Pagy pagination styling */
.pagy nav {
  display: flex;
  gap: 0.25rem;
}

.pagy nav a,
.pagy nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.15s;
}

.pagy nav a {
  background: white;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.pagy nav a:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.pagy nav span.current {
  background: #84cc16;
  color: white;
  border: 1px solid #84cc16;
}

.pagy nav span.gap {
  background: transparent;
  border: none;
  color: #9ca3af;
}

.pagy nav a[aria-disabled="true"],
.pagy nav span.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Radar ping animation for CTA buttons */
@keyframes radar-ping {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.btn-radar {
  position: relative;
}

.btn-radar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(132, 204, 22, 0.4);
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}
