/* ========================================
   ASSUR'FUTUR - Styles principaux
   Palette: Bleu marine + Vert émeraude
   ======================================== */

:root {
  --navy: #0d2240;
  --navy-light: #163560;
  --green: #00b894;
  --green-dark: #00916e;
  --white: #ffffff;
  --light-bg: #f4f7fb;
  --gray: #61708a;
  --gray-light: #e8edf5;
  --text: #1a2b44;
  --shadow: 0 4px 24px rgba(13,34,64,0.10);
  --shadow-lg: 0 8px 40px rgba(13,34,64,0.18);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,184,148,0.35);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,184,148,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.35s ease;
  padding: 20px 0;
}

.navbar.scrolled {
  background: var(--navy);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

.logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text) !important;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.dropdown-menu a:hover { background: var(--light-bg); color: var(--navy) !important; }
.dropdown-menu a::after { display: none !important; }

.nav-cta { margin-left: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 2px;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1800&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,34,64,0.92) 0%, rgba(13,34,64,0.6) 60%, rgba(0,184,148,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,184,148,0.15);
  border: 1px solid rgba(0,184,148,0.4);
  color: var(--green);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badge span { font-size: 1rem; }

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-stat {
  color: var(--white);
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  display: block;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ---- QUICK FORM ---- */
.quick-form-section {
  background: var(--white);
  padding: 0;
  position: relative;
  z-index: 10;
  margin-top: -80px;
}

.quick-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  border-top: 4px solid var(--green);
}

.quick-form-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.quick-form-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}

/* ---- SECTION STYLES ---- */
.section {
  padding: 100px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: rgba(0,184,148,0.12);
  color: var(--green-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-header h2 {
  color: var(--navy);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-bottom: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,184,148,0.06) 50%);
  border-radius: 0 var(--radius-lg) 0 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--green);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1a3a6e 0%, #0d2240 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 24px;
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'EmojiOne Color', sans-serif;
  line-height: 1;
  color: white;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-link {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.service-link:hover { gap: 10px; }

/* ---- MAYOTTE SPOTLIGHT ---- */
.mayotte-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.mayotte-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,184,148,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.mayotte-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mayotte-content h2 { color: var(--white); margin-bottom: 20px; }
.mayotte-content p { color: rgba(255,255,255,0.8); margin-bottom: 16px; line-height: 1.8; }

.mayotte-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.mayotte-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 16px 20px;
  border-left: 3px solid var(--green);
}

.mayotte-feature .icon {
  font-size: 1.4rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.mayotte-feature h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 4px; }
.mayotte-feature p { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin: 0; }

.mayotte-visual {
  position: relative;
}

.mayotte-card-stack {
  position: relative;
  height: 400px;
}

.mayotte-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--white);
}

.mayotte-card:nth-child(1) {
  top: 0; left: 0;
  width: 75%;
  z-index: 3;
}

.mayotte-card:nth-child(2) {
  top: 40px; right: 0;
  width: 75%;
  z-index: 2;
  opacity: 0.6;
}

.mayotte-card:nth-child(3) {
  bottom: 0; left: 20px;
  width: 70%;
  z-index: 1;
  opacity: 0.4;
}

.mc-tag {
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.mc-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.mc-detail { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 12px; }

.mc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}

/* ---- PROCESS ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px; left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--navy));
  opacity: 0.2;
}

.process-step {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s;
}

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

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(13,34,64,0.3);
}

.process-step h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.1rem; }
.process-step p { color: var(--gray); font-size: 0.9rem; }

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  border-top: 4px solid var(--green);
}

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

.stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-text {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.author-role { color: var(--gray); font-size: 0.82rem; }

/* ---- PARTNERS ---- */
.partners-section {
  padding: 60px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.partners-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.partner-logo {
  background: var(--gray-light);
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 700;
  color: var(--gray);
  font-size: 1rem;
  transition: all 0.2s;
}

.partner-logo:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---- BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

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

.blog-img {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.blog-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.blog-tag {
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}

.blog-body { padding: 28px; }
.blog-date { color: var(--gray); font-size: 0.82rem; margin-bottom: 10px; }
.blog-body h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.1rem; line-height: 1.4; }
.blog-body p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.blog-link { color: var(--green); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '🏗️';
  position: absolute;
  font-size: 15rem;
  opacity: 0.04;
  top: 50%;
  left: -5%;
  transform: translateY(-50%);
}

.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--light-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 16px; margin-bottom: 24px; font-size: 0.92rem; line-height: 1.7; }

.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--green); }

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--green);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--green); }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; }
.contact-item .ci-icon { margin-top: 1px; flex-shrink: 0; }
.contact-item .ci-icon .svgi { width: 18px; height: 18px; color: var(--green); }

/* ========== ICONS (SVG sprite, replaces emoji) ========== */
.svgi { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; fill: none; }
.svgi-inline { width: 0.95em; height: 0.95em; vertical-align: -0.14em; margin-right: 5px; color: currentColor; }
.service-icon .svgi { width: 30px; height: 30px; color: var(--white); }
.produit-icon .svgi { width: 32px; height: 32px; color: var(--navy); }
.categorie-icon .svgi { width: 20px; height: 20px; color: var(--white); }
.value-icon .svgi { width: 34px; height: 34px; color: var(--green); }
.blog-img .svgi { width: 48px; height: 48px; color: var(--white); }
.nav-dropdown .dropdown-menu a .svgi-inline { color: var(--green); }
.social-btn .svgi { width: 16px; height: 16px; }
.mayotte-feature .svgi { width: 22px; height: 22px; color: var(--green); }
.step-number .svgi { width: 26px; height: 26px; }
.vb-icon .svgi { width: 22px; height: 22px; color: var(--green); }
.cii-icon .svgi { width: 22px; height: 22px; color: var(--green); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--green); }

/* ---- FLOATING BUTTON ---- */
.floating-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: 16px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,184,148,0.45);
  animation: float-pulse 2.5s ease-in-out infinite;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,184,148,0.55);
}

.floating-btn .fb-pulse {
  width: 10px; height: 10px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.page-hero-content { max-width: 700px; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: var(--green); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.4); }

.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; line-height: 1.7; }

/* ---- CONTENT BLOCKS ---- */
.content-block {
  padding: 80px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.content-text .tag { margin-bottom: 16px; }
.content-text h2 { color: var(--navy); margin-bottom: 16px; }
.content-text p { color: var(--gray); line-height: 1.8; margin-bottom: 16px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  background: var(--green);
  color: var(--white);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.content-visual {
  position: relative;
}

.visual-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  transition: transform 0.4s ease;
}

.visual-main:hover {
  transform: scale(1.02);
}

.visual-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,34,64,0.30) 0%,
    rgba(13,34,64,0.10) 50%,
    rgba(0,184,148,0.15) 100%
  );
  border-radius: var(--radius-lg);
}

.visual-badge {
  position: absolute;
  bottom: -20px;
  right: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.vb-icon { font-size: 1.8rem; }

.visual-icon {
  width: 140px;
  height: 140px;
  color: rgba(255,255,255,0.18);
  position: relative;
  z-index: 0;
}
.vb-text strong { display: block; color: var(--navy); font-size: 1.1rem; }
.vb-text span { color: var(--gray); font-size: 0.8rem; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item.open { box-shadow: var(--shadow); }

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  gap: 16px;
}

.faq-icon {
  width: 28px; height: 28px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--green);
  color: var(--white);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  padding: 0 24px 20px;
  max-height: 500px;
}

.faq-answer p { color: var(--gray); line-height: 1.7; font-size: 0.95rem; }

/* ---- DEVIS MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,34,64,0.75);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  overflow-y: auto;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 48px;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s ease;
  margin: auto;
}

.modal-card-wide {
  max-width: 780px;
  padding: 40px 48px;
}

.modal-overlay.open .modal-card { transform: scale(1) translateY(0); }

.modal-header-block {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-light);
}
.modal-header-block h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.5rem; }
.modal-header-block p { color: var(--gray); font-size: 0.95rem; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--light-bg);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.modal-close:hover { background: var(--gray-light); }

.modal-form { display: flex; flex-direction: column; gap: 16px; }

.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea { width: 100%; }

.modal-form textarea {
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}
.modal-form textarea:focus { outline: none; border-color: var(--green); }

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

/* ---- Assurance choices (checkbox grid in modal) ---- */
.assurance-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.choice-group {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--gray-light);
}

.choice-group-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(13,34,64,0.1);
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  padding: 3px 0;
  transition: color 0.15s;
}

.choice-item:hover { color: var(--navy); }

.choice-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .assurance-choices { grid-template-columns: 1fr; }
  .modal-card-wide { padding: 28px 20px; }
}

/* ---- PRODUITS D'ASSURANCE ---- */
.produits-categorie {
  margin-bottom: 56px;
}

.produits-gamme-rest {
  display: none;
}
.produits-gamme-rest.open {
  display: block;
  animation: produitsFadeIn 0.4s ease;
}
@keyframes produitsFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.categorie-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-light);
}

.categorie-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.produit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.produit-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 8px 28px rgba(0,184,148,0.18);
}

.produit-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1;
}

.produit-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.88rem;
  margin-bottom: 6px;
  line-height: 1.3;
}

.produit-desc {
  font-size: 0.77rem;
  color: var(--gray);
  line-height: 1.4;
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mayotte-inner { grid-template-columns: 1fr; gap: 48px; }
  .content-grid { grid-template-columns: 1fr; gap: 48px; }
  .content-grid.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open a { font-size: 1.3rem; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; background: transparent; box-shadow: none; padding: 8px 0; }
  .dropdown-menu a { color: rgba(255,255,255,0.7) !important; text-align: center; }

  .hero-stats { gap: 24px; }
  .quick-form-card { grid-template-columns: 1fr; }
  .form-fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .floating-btn .fb-label { display: none; }
  .process-steps::before { display: none; }
  .mayotte-card-stack { height: auto; }
  .mayotte-card { position: static; width: 100% !important; margin-bottom: 16px; opacity: 1 !important; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .section { padding: 60px 0; }
  .modal-card { padding: 32px 24px; }
}

/* ========== COOKIE BANNER ========== */
.af-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.af-cookie-banner.visible { transform: translateY(0); }
.af-cookie-banner.closing { transform: translateY(100%); }
.af-cookie-text { max-width: 640px; font-size: 0.88rem; line-height: 1.5; }
.af-cookie-text a { color: var(--green); text-decoration: underline; }
.af-cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.af-cookie-actions .btn { padding: 10px 20px; font-size: 0.88rem; }
.af-cookie-actions .btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
@media (max-width: 600px) {
  .af-cookie-banner { flex-direction: column; text-align: center; padding: 20px; }
  .af-cookie-actions { width: 100%; }
  .af-cookie-actions .btn { flex: 1; }
}
