/* AMAPA - Modern Design Enhancements */
/* Brand Colors */
:root {
  --amapa-orange: #BA411A;
  --amapa-orange-light: #D65A33;
  --amapa-orange-dark: #9A3515;
  --amapa-blue: #1E3A8A;
  --amapa-blue-light: #3B82F6;
  --amapa-green: #10B981;
  --amapa-dark: #1F2937;
  --amapa-gray: #F3F4F6;
  --amapa-white: #FFFFFF;
}

/* Navbar - Hidden at top, visible on scroll */
.navigation {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease !important;
}


/* ========================================
   DESIGN MODERNE - ESPACEMENTS OPTIMISÉS
   ======================================== */

/* Reset spacing moderne */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sections avec padding uniforme */
section {
  padding: 60px 20px !important;
}

section.hero {
  padding: 80px 20px 60px !important;
}

/* Conteneurs avec max-width moderne */
.container, .w-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Titres avec spacing optimisé */
h1, h2, h3, .heading, .heading-2, .heading-3 {
  margin-top: 0 !important;
  margin-bottom: 35px !important;
  line-height: 1.2 !important;
}

/* H3 doivent être display block pour le centrage */
h3, .heading-3 {
  display: block !important;
}

h4, h5, h6 {
  margin-bottom: 18px !important;
  line-height: 1.3 !important;
}

/* Paragraphes et textes compacts */
p, .paragraph-regular, .description, .text-block {
  margin-bottom: 14px !important;
  line-height: 1.6 !important;
}

p:last-child,
.description:last-child,
.text-block:last-child {
  margin-bottom: 0 !important;
}

/* Images responsives et optimisées */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Cards avec spacing moderne */
.flex-block-5, .flex-block-6, .flex-block-7,
.flex-block-10, .flex-block-15, .flex-block-16 {
  margin-bottom: 0 !important;
}

/* Grids avec gaps modernes */
.w-layout-hflex, .w-layout-vflex {
  /* gap: 25px; */
}

/* Boutons avec spacing optimal */
.primary-button, .w-button {
  padding: 12px 28px !important;
  margin: 8px 4px !important;
}

/* Responsive moderne */
@media (max-width: 991px) {
  section {
    padding: 50px 20px !important;
  }
  
  h1, h2, h3 {
    margin-bottom: 30px !important;
  }
  
  /* Remove hero ::before background on tablet */
  .intro-section::before {
    background: transparent !important;
  }
}

@media (max-width: 767px) {
  section {
    padding: 40px 16px !important;
  }
  
  h1, h2, h3 {
    margin-bottom: 25px !important;
  }
  
  .container, .w-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  /* Remove hero ::before background on mobile */
  .intro-section::before {
    background: transparent !important;
  }
}




/* Modern Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes rotateGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hero Section Enhancements */
.intro-section {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(#0000, #ffffffde 81%, #00415a) !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.cc-store-home-wrap.intro-section {
  background-image: linear-gradient(#0000, #ffffffde 81%, #00415a) !important;
}

/* Réduire l'espace à gauche dans les hero */
.intro-section .flex-block-2,
.cc-store-home-wrap .flex-block-2 {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.intro-section .flex-block,
.cc-store-home-wrap .flex-block {
  padding-left: 0 !important;
  margin-left: 0 !important;
  align-items: flex-start !important;
}

/* Images dans le hero aussi décalées à gauche */
.intro-section .image,
.cc-store-home-wrap .image {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Hero spécifique pour index.html - éviter navbar */
.cc-store-home-wrap.intro-section {
  /* padding-top: 180px !important; */
}

.intro-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.intro-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  /* background: linear-gradient(to top, rgba(249, 250, 251, 0.9) 0%, transparent 100%); */
  pointer-events: none;
  z-index: 1;
}

.heading {
  background: linear-gradient(135deg, #1F2937 0%, var(--amapa-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  line-height: 1.2;
}

/* Centrer TOUS les titres - Force maximale contre Webflow */
h1, h2, h3, h4, h5, h6,
.heading, .heading-2, .heading-3, .heading-4, .heading-5, .heading-6,
.subtitle, .title, section h1, section h2, section h3, section h4 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Exceptions pour les cards où le titre doit être à gauche */
.amapa-fonc-card-title,
.flex-block-10 .business-article-heading,
.flex-block-15 .heading-6 {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Titres et sous-titres des sections hero alignés à gauche */
.intro-section h1,
.intro-section h2,
.intro-section .heading,
.intro-section .heading-2,
.intro-section .subtitle,
.cc-store-home-wrap h1,
.cc-store-home-wrap h2,
.cc-store-home-wrap .heading,
.cc-store-home-wrap .heading-2,
.cc-store-home-wrap .subtitle {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* H3 et plus doivent TOUJOURS rester centrés, même dans les hero */
h3, h4, h5, h6,
.heading-3, .heading-4, .heading-5, .heading-6,
.intro-section h3,
.intro-section h4,
.cc-store-home-wrap h3,
.cc-store-home-wrap h4 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Les paragraphes et contenus restent alignés à gauche */
p, .paragraph-regular, .label, .text-block {
  text-align: left;
}

.heading-10, .heading-12, .heading-11 {
  color: #4B5563;
  font-weight: 500;
  line-height: 1.6;
}

/* Button Enhancements */
.primary-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amapa-orange), var(--amapa-orange-light));
  border: none;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.primary-button:hover::before {
  left: 100%;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.primary-button.bigger {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Card Enhancements */
.flex-block-5, .flex-block-6, .flex-block-7,
.flex-block-9, .flex-block-10, 
.flex-block-16 {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.flex-block-5::before, .flex-block-6::before, .flex-block-7::before,
.flex-block-9::before, .flex-block-10::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--amapa-orange), var(--amapa-orange-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.flex-block-5:hover::before, .flex-block-6:hover::before, .flex-block-7:hover::before,
.flex-block-9:hover::before, .flex-block-10:hover::before {
  transform: scaleX(1);
}

.flex-block-5:hover, .flex-block-6:hover, .flex-block-7:hover,
.flex-block-9:hover, .flex-block-10:hover,
.flex-block-16:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.15);
}

/* Step Numbers Enhancement */
.text-block-2, .text-block-3, .text-block-4 {
  background: linear-gradient(135deg, var(--amapa-orange), var(--amapa-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Section Headings */
.heading-3 {
  font-weight: 800;
  color: #1F2937;
  position: relative;
  display: block;
  margin-bottom: 3rem;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.heading-3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--amapa-orange), var(--amapa-orange-light));
  border-radius: 2px;
}

/* Orange Text Highlights */
.orange, .text-span-7, .text-span-8 {
  color: var(--amapa-orange);
  font-weight: 700;
}

/* Flag Icons Animation */
.flex-block-3 img {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.flex-block-3 img:hover {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
}

/* Background Sections */
.bg-light {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

.bg-gray {
  background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
}

/* Centrer et espacer le bouton d'inscription dans la section abonnements */
.bg-gray .w-layout-hflex:last-child {
  justify-content: center !important;
  margin-top: 50px !important;
  padding-top: 20px !important;
}

.bg-grey {
  background: linear-gradient(180deg, #F3F4F6 0%, #E5E7EB 100%);
}

.section-3, .section-4 {
  background: white;
  position: relative;
}

/* Subtitle Enhancement */
.subtitle {
  color: #1F2937;
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 20px;
}

.subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background: linear-gradient(180deg, var(--amapa-orange), var(--amapa-orange-light));
  border-radius: 2px;
}

/* Business Article Cards */
.business-article-heading {
  color: #1F2937;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Description Text */
.description-step, .text-block-12 {
  color: #6B7280;
  line-height: 1.6;
}

.paragraph-regular {
  color: #4B5563;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* CTA Section */
.section.cc-cta {
  background: linear-gradient(135deg, var(--amapa-orange) 0%, var(--amapa-orange-light) 100%);
  position: relative;
  overflow: hidden;
}

.section.cc-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.heading-jumbo-small {
  color: white;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.paragraph-bigger.cc-bigger-light {
  color: rgba(255, 255, 255, 0.95);
}

.primary-button.cc-jumbo-button {
  background: white;
  color: var(--amapa-orange);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.primary-button.cc-jumbo-button:hover {
  background: #F9FAFB;
  color: var(--amapa-orange-dark);
  transform: translateY(-5px) scale(1.05);
}

/* Media Press Cards */
.flex-block-16 {
  background: white;
  border: 2px solid #F3F4F6;
  transition: all 0.3s ease;
}

.flex-block-16:hover {
  border-color: var(--amapa-orange);
}

.primary-button.round-button {
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
}

/* Phone Mockup Animation */
.image, .image-2 {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  transition: all 0.6s ease;
}

.image:hover, .image-2:hover {
  transform: translateY(-10px) scale(1.02);
  filter: drop-shadow(0 30px 60px rgba(255, 107, 53, 0.2));
}

/* Footer Enhancement */
.footer-wrap {
  position: relative;
}

.text-white.footer-link {
  position: relative;
  transition: all 0.3s ease;
}

.text-white.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amapa-orange);
  transition: width 0.3s ease;
}

.text-white.footer-link:hover::after {
  width: 100%;
}

.text-white.footer-link:hover {
  color: var(--amapa-orange);
}

/* Label Enhancement */
.label.cc-light {
  background: rgba(255, 107, 53, 0.1);
  color: var(--amapa-orange);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
}

/* Responsive Enhancements */
@media (max-width: 991px) {
  .heading {
    font-size: 2rem;
  }
  
  .heading-3::after {
    width: 40px;
  }
  
  .flex-block-5, .flex-block-6, .flex-block-7,
  .flex-block-9, .flex-block-10 {
    padding: 1.5rem;
  }
}

@media (max-width: 767px) {
  .heading {
    font-size: 1.75rem;
  }
  
  .primary-button.bigger {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .subtitle {
    font-size: 1.25rem;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Loading Animation for Images */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ========================================
   SECTION: Comment ça marche
   ======================================== */
.bg-light {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F5 100%);
  padding: 80px 20px;
}

.bg-light .heading-3 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--amapa-dark);
  position: relative;
}

.bg-light .heading-3::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--amapa-orange), var(--amapa-orange-light));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Container des étapes */
.flex-block-14 {
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards étapes */
.flex-block-5, .flex-block-6, .flex-block-7 {
  flex: 1;
  max-width: 320px;
  padding: 40px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(186, 65, 26, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.flex-block-5::before, 
.flex-block-6::before, 
.flex-block-7::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amapa-orange), var(--amapa-orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.flex-block-5:hover::before,
.flex-block-6:hover::before,
.flex-block-7:hover::before {
  transform: scaleX(1);
}

.flex-block-5:hover, .flex-block-6:hover, .flex-block-7:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(186, 65, 26, 0.15);
  border-color: var(--amapa-orange-light);
}

/* Images dans les cards étapes */
.flex-block-5 img, .flex-block-6 img, .flex-block-7 img {
  margin-bottom: 25px;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.flex-block-5:hover img, 
.flex-block-6:hover img, 
.flex-block-7:hover img {
  transform: scale(1.05) rotate(2deg);
}

/* Titres des étapes */
.text-block-2, .text-block-3, .text-block-4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amapa-orange);
  margin-bottom: 15px;
  text-align: center;
}

/* Description des étapes */
.description-step {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--amapa-dark);
  text-align: center;
  margin: 0;
}

/* ========================================
   SECTION: Les médias en parlent
   ======================================== */
.bg-grey {
  background: linear-gradient(135deg, #F9FAFB 0%, #FFF8F5 100%);
  padding: 80px 20px;
}

.bg-grey .heading-3 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--amapa-dark);
  position: relative;
}

.bg-grey .heading-3::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--amapa-orange), var(--amapa-orange-light));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Container médias */
.flex-block-4 {
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

/* Cards médias */
.flex-block-16 {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  min-height: 280px;
  padding: 35px 25px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(186, 65, 26, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flex-block-16::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amapa-orange), var(--amapa-orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.flex-block-16:hover::before {
  transform: scaleX(1);
}

.flex-block-16:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(186, 65, 26, 0.15);
  border-color: var(--amapa-orange-light);
}

/* Images logos médias */
.flex-block-16 img {
  margin-bottom: 25px;
  max-height: 100px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: grayscale(20%);
}

.flex-block-16:hover img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

/* Container boutons médias */
.flex-block-17 {
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* Boutons médias */
.round-button {
  padding: 12px 28px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 25px !important;
  background: var(--amapa-orange) !important;
  color: white !important;
  border: 2px solid var(--amapa-orange) !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(186, 65, 26, 0.2);
}

.round-button:hover {
  background: var(--amapa-orange-dark) !important;
  border-color: var(--amapa-orange-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(186, 65, 26, 0.3);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .bg-light, .bg-grey {
    padding: 60px 20px;
  }
  
  .bg-light .heading-3, .bg-grey .heading-3 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .flex-block-14, .flex-block-4 {
    flex-direction: column;
    align-items: center;
  }
  
  .flex-block-5, .flex-block-6, .flex-block-7,
  .flex-block-16 {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .bg-light .heading-3, .bg-grey .heading-3 {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }
  
  .flex-block-5, .flex-block-6, .flex-block-7,
  .flex-block-16 {
    padding: 30px 20px;
  }
  
  .round-button {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
  }
}

/* ========================================
   PAGE PROFESSIONNELS - FONCTIONNALITÉS (NOUVEAU CODE PROPRE)
   ======================================== */

.amapa-fonctionnalites {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F5 50%, #FFF0EB 100%);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.amapa-fonctionnalites::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(186, 65, 26, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.amapa-fonctionnalites::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 98, 168, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

/* Container principal */
.amapa-fonc-container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Titre principal centré */
.amapa-fonc-title {
  text-align: center !important;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--amapa-dark);
  margin-bottom: 80px;
  position: relative;
}

.amapa-fonc-title::before {
  content: '✨ ';
  font-size: 2.5rem;
  margin-right: 15px;
  animation: pulse 2s ease-in-out infinite;
}

.amapa-fonc-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg, var(--amapa-orange), var(--amapa-orange-light));
  margin: 25px auto 0;
  border-radius: 3px;
  box-shadow: 0 4px 15px rgba(186, 65, 26, 0.3);
}

/* Card héro - Fonctionnalité principale */
.amapa-fonc-hero {
  max-width: 700px;
  margin: 0 auto 80px;
  background: white;
  padding: 50px 40px;
  border-radius: 30px;
  box-shadow: 0 15px 50px rgba(186, 65, 26, 0.1);
  text-align: center;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
}

.amapa-fonc-hero::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    45deg,
    var(--amapa-orange),
    var(--amapa-orange-light),
    var(--amapa-blue),
    var(--amapa-orange)
  );
  border-radius: 30px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: rotateGradient 3s linear infinite;
}

.amapa-fonc-hero:hover::before {
  opacity: 1;
}

.amapa-fonc-hero:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 70px rgba(186, 65, 26, 0.2);
}

.amapa-fonc-hero-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 30px;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.amapa-fonc-hero:hover .amapa-fonc-hero-img {
  transform: scale(1.05) rotate(-2deg);
}

.amapa-fonc-hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--amapa-orange);
  margin-bottom: 20px;
  text-align: center !important;
}

.amapa-fonc-hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4B5563;
  text-align: center !important;
  margin: 0;
}

.amapa-fonc-link {
  color: var(--amapa-orange);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.amapa-fonc-link:hover {
  color: var(--amapa-orange-dark);
}

/* Grille de fonctionnalités */
.amapa-fonc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards de fonctionnalités */
.amapa-fonc-card {
  background: white;
  padding: 45px 35px;
  border-radius: 25px;
  box-shadow: 0 10px 35px rgba(186, 65, 26, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.amapa-fonc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--amapa-orange), var(--amapa-orange-light), var(--amapa-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.amapa-fonc-card:hover::before {
  transform: scaleX(1);
}

.amapa-fonc-card::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(186, 65, 26, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  transition: all 0.6s ease;
}

.amapa-fonc-card:hover::after {
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
}

.amapa-fonc-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 60px rgba(186, 65, 26, 0.15);
  border-color: var(--amapa-orange-light);
}

/* Icônes emoji dans les cards */
.amapa-fonc-card-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  text-align: left;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: inline-block;
}

.amapa-fonc-card:hover .amapa-fonc-card-icon {
  transform: scale(1.2) rotate(10deg);
}

/* Titres des cards */
.amapa-fonc-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amapa-orange);
  margin-bottom: 20px;
  text-align: left;
  position: relative;
  padding-bottom: 15px;
}

.amapa-fonc-card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--amapa-orange);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.amapa-fonc-card:hover .amapa-fonc-card-title::after {
  width: 80px;
}

/* Descriptions des cards */
.amapa-fonc-card-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4B5563;
  text-align: left;
  margin: 0;
}

/* Responsive - Tablettes */
@media (max-width: 991px) {
  .amapa-fonctionnalites {
    padding: 70px 20px;
  }
  
  .amapa-fonc-title {
    font-size: 2.3rem;
    margin-bottom: 60px;
  }
  
  .amapa-fonc-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .amapa-fonc-hero {
    max-width: 100%;
    padding: 40px 30px;
  }
}

/* Responsive - Mobiles */
@media (max-width: 767px) {
  .amapa-fonctionnalites {
    padding: 60px 15px;
  }
  
  .amapa-fonc-title {
    font-size: 2rem;
    margin-bottom: 50px;
  }
  
  .amapa-fonc-title::before {
    font-size: 2rem;
  }
  
  .amapa-fonc-hero {
    padding: 35px 25px;
    border-radius: 20px;
    margin-bottom: 60px;
  }
  
  .amapa-fonc-hero-title {
    font-size: 1.5rem;
  }
  
  .amapa-fonc-hero-desc {
    font-size: 1rem;
  }
  
  .amapa-fonc-card {
    padding: 35px 25px;
    border-radius: 20px;
  }
  
  .amapa-fonc-card-icon {
    font-size: 3rem;
  }
  
  .amapa-fonc-card-title {
    font-size: 1.2rem;
  }
  
  .amapa-fonc-card-desc {
    font-size: 1rem;
  }
}


/* ========================================
   PAGE PROFESSIONNELS - QUI PEUT S'INSCRIRE
   ======================================== */

.section-5 {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F5 100%);
  padding: 100px 20px;
  position: relative;
}

.section-5 .heading-3 {
  text-align: center !important;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 70px;
  color: var(--amapa-dark);
  position: relative;
}

.section-5 .heading-3::after {
  content: '';
  display: block;
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--amapa-orange), var(--amapa-orange-light));
  margin: 25px auto 0;
  border-radius: 3px;
}

/* Grid des profils */
.section-5 .flex-block-11 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Cards profils (Prestataires, Commerçants, Entrepreneurs) */
.flex-block-10 {
  background: white;
  padding: 50px 35px;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(186, 65, 26, 0.08);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.flex-block-10::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--amapa-orange), var(--amapa-orange-light), var(--amapa-blue));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s ease;
}

.flex-block-10:hover::before {
  transform: scaleX(1);
}

.flex-block-10::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(186, 65, 26, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  transition: all 0.5s ease;
}

.flex-block-10:hover::after {
  bottom: -50px;
  width: 250px;
  height: 250px;
}

.flex-block-10:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 60px rgba(186, 65, 26, 0.15);
  border-color: var(--amapa-orange-light);
}

/* Images dans les cards profils */
.flex-block-10 img {
  margin-bottom: 30px;
  border-radius: 20px;
  transition: all 0.5s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.flex-block-10:hover img {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 10px 30px rgba(186, 65, 26, 0.2);
}

/* Titres des cards profils */
.business-article-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amapa-orange);
  margin-bottom: 20px;
  text-align: center !important;
  position: relative;
  display: inline-block;
  width: 100%;
}

.business-article-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--amapa-orange);
  margin: 12px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.flex-block-10:hover .business-article-heading::after {
  width: 90px;
}

/* Description des cards profils */
.text-block-8, .text-block-10 {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4B5563;
  text-align: center !important;
}

/* Responsive - Tablettes */
@media (max-width: 991px) {
  .section-5 {
    padding: 70px 20px;
  }
  
  .section-5 .heading-3 {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }
  
  .section-5 .flex-block-11 {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .flex-block-10 {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Responsive - Mobiles */
@media (max-width: 767px) {
  .section-5 {
    padding: 60px 15px;
  }
  
  .section-5 .heading-3 {
    font-size: 1.9rem;
    margin-bottom: 40px;
  }
  
  .flex-block-10 {
    padding: 40px 25px;
    border-radius: 20px;
  }
  
  .business-article-heading {
    font-size: 1.3rem;
  }
  
  .text-block-8, .text-block-10 {
    font-size: 1rem;
  }
}

/* ========================================
   PAGE PROFESSIONNELS - ABONNEMENTS
   ======================================== */

.abonnement-card {
  background: white;
  padding: 45px 35px;
  border-radius: 25px;
  box-shadow: 0 8px 30px rgba(186, 65, 26, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.abonnement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--amapa-orange), var(--amapa-orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.abonnement-card:hover::before {
  transform: scaleX(1);
}

.abonnement-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(186, 65, 26, 0.15);
  border-color: var(--amapa-orange-light);
}

.abonnement-card .image-3 {
  transition: transform 0.5s ease;
}

.abonnement-card:hover .image-3 {
  transform: scale(1.1) rotate(5deg);
}

/* Fix "RECOMMANDÉ" pill overflow */
.text-block-7 {
  white-space: nowrap !important;
  padding: 0.6rem 1rem !important;
  font-size: 0.7rem !important;
  min-width: max-content !important;
  right: -0.5rem !important;
  line-height: 1 !important;
}



/* ========================================
   UNIFORMISATION GLOBALE DES GRILLES
   ======================================== */

/* Toutes les grilles flex alignent les items */
.flex-block-14,
.flex-block-11,
.flex-block-4 {
  align-items: stretch !important;
}

/* Responsive uniforme pour toutes les cards */
@media (max-width: 991px) {
  .flex-block-5, .flex-block-6, .flex-block-7,
  .flex-block-10,
  .flex-block-16,
  .amapa-fonc-card {
    min-height: auto !important;
  }
}

@media (max-width: 767px) {
  .flex-block-5, .flex-block-6, .flex-block-7,
  .flex-block-10,
  .flex-block-16,
  .amapa-fonc-card {
    min-height: auto !important;
    max-width: 100% !important;
  }
}

