/* ==========================================================================
   CIDSA.11 — Feuille de style principale moderne, épurée et responsive
   Design System Institutionnel & Chaleureux • Aude (11)
   ========================================================================== */

:root {
  /* Palette de couleurs */
  --navy-950: #07152f;
  --navy-900: #0c234b;
  --navy-800: #123066;
  --navy-700: #173e82;
  --navy-600: #1e52ad;
  --navy-100: #e8eef8;
  --navy-50:  #f2f6fc;

  --green-800: #195e2c;
  --green-700: #1e7537;
  --green-600: #299347;
  --green-500: #38b45c;
  --green-100: #eaf6ee;
  --green-50:  #f3faf5;

  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Typographie */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);

  /* Ombrages */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(12, 35, 75, 0.08), 0 2px 6px -1px rgba(12, 35, 75, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(12, 35, 75, 0.10), 0 4px 8px -2px rgba(12, 35, 75, 0.05);
  --shadow-xl: 0 20px 32px -6px rgba(12, 35, 75, 0.14), 0 8px 16px -4px rgba(12, 35, 75, 0.06);

  /* Rayons de bordure */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background-color: #fafbfc;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.drawer-locked {
  overflow: hidden;
}

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

a {
  color: var(--navy-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--navy-900);
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Accessibilité : Skip link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 16px;
  z-index: 9999;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--navy-600);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Structure globale
   -------------------------------------------------------------------------- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

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

.section-wrap {
  padding: 56px 0 80px;
}

/* --------------------------------------------------------------------------
   Top Bar & Header
   -------------------------------------------------------------------------- */
.top-bar {
  background: var(--navy-950);
  color: var(--navy-100);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  opacity: 0.9;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: opacity var(--transition-fast);
}

.top-bar-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Sticky Main Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 4px 18px -4px rgba(12, 35, 75, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(12, 35, 75, 0.05));
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo {
  transform: scale(1.02);
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--navy-50);
  color: var(--navy-900);
}

.nav-link.active {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(18, 48, 102, 0.25);
}

.nav-link-cta {
  background: var(--green-700);
  color: var(--white) !important;
  margin-left: 6px;
}

.nav-link-cta:hover {
  background: var(--green-800);
  color: var(--white) !important;
}

.nav-link-cta.active {
  background: var(--green-800);
  box-shadow: 0 2px 8px rgba(25, 94, 44, 0.3);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
}

.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--navy-700);
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
}

/* --------------------------------------------------------------------------
   Pages (Sections SPA)
   -------------------------------------------------------------------------- */
.page-section {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Typographie & Titres généraux
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 42px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--navy-50);
  color: var(--navy-700);
  border: 1px solid var(--navy-100);
  margin-bottom: 16px;
}

.section-badge.green {
  background: var(--green-50);
  color: var(--green-800);
  border-color: var(--green-100);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--green-700);
  line-height: 1.25;
  text-align: center;
  margin: 40px auto 20px;
}

.lead-text {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--slate-600);
  line-height: 1.65;
  max-width: 800px;
  margin: 0 auto;
}

.bigline {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.25;
  margin: 28px auto 16px;
  letter-spacing: -0.01em;
}

.bigline.green-text {
  color: var(--green-700);
}

.center-text {
  max-width: 820px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 1.08rem;
  color: var(--slate-700);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Composants Graphiques & Cartes
   -------------------------------------------------------------------------- */
.visual-container {
  max-width: 920px;
  margin: 24px auto 36px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  background: var(--white);
  transition: transform var(--transition-normal);
}

.visual-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Boutons d'action */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--navy-800);
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(18, 48, 102, 0.2);
}

.btn-primary:hover {
  background: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 48, 102, 0.28);
}

.btn-green {
  background: var(--green-700);
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(25, 94, 44, 0.2);
}

.btn-green:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(25, 94, 44, 0.28);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--slate-300);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
  color: var(--navy-900);
}

.btn-arrow::after {
  content: "→";
  display: inline-block;
  font-family: monospace;
  font-size: 1.1em;
  transition: transform var(--transition-fast);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* Grilles de cartes */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 32px 0;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

/* Carte standard */
.card-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--slate-300);
}

.card-item.blue {
  background: linear-gradient(180deg, #ffffff 0%, var(--navy-50) 100%);
  border-color: rgba(23, 62, 130, 0.16);
}

.card-item.green {
  background: linear-gradient(180deg, #ffffff 0%, var(--green-50) 100%);
  border-color: rgba(30, 117, 55, 0.18);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  background: var(--navy-100);
  color: var(--navy-800);
  flex-shrink: 0;
}

.card-item.green .card-icon {
  background: var(--green-100);
  color: var(--green-700);
}

.card-item h3 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-item.green h3 {
  color: var(--green-800);
}

.card-item p {
  color: var(--slate-600);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.card-item p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Section Accueil (Hero)
   -------------------------------------------------------------------------- */
.hero-home {
  text-align: center;
  padding: 40px 0 20px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--green-600);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(41, 147, 71, 0.2);
}

.hero-home h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5.2vw, 4.3rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 960px;
  margin: 0 auto 26px;
}

.hero-lead-container {
  max-width: 900px;
  margin: 0 auto 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 246, 255, 0.8));
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-lead-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--navy-700), var(--green-600));
}

.hero-home .lead {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  color: var(--slate-700);
  line-height: 1.7;
  margin: 0 auto;
}

.agentline-badge {
  display: inline-block;
  margin: 8px 0;
  padding: 4px 14px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  font-size: 0.92em;
  box-shadow: 0 2px 6px rgba(12, 35, 75, 0.2);
}

/* Audience Cards (Accueil) */
.audience-card-home {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.audience-card-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy-700);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.audience-card-home:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--navy-100);
}

.audience-card-home:hover::before {
  opacity: 1;
}

.audience-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border: 1px solid var(--navy-100);
}

.audience-card-home h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.audience-card-home p {
  color: var(--slate-600);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 26px;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   Steps & Méthodologie (Particuliers & Bailleurs)
   -------------------------------------------------------------------------- */
.method-flow {
  display: grid;
  gap: 20px;
  max-width: 960px;
  margin: 32px auto 44px;
}

.step-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-card.odd {
  background: linear-gradient(135deg, var(--white) 0%, var(--navy-50) 100%);
  border-color: rgba(23, 62, 130, 0.15);
}

.step-card.even {
  background: linear-gradient(135deg, var(--white) 0%, var(--green-50) 100%);
  border-color: rgba(30, 117, 55, 0.18);
}

.step-num-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(18, 48, 102, 0.2);
}

.step-card.even .step-num-badge {
  background: var(--green-700);
  box-shadow: 0 4px 10px rgba(25, 94, 44, 0.2);
}

.step-body {
  flex: 1;
}

.step-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.step-body p {
  font-size: 1.05rem;
  color: var(--slate-700);
  line-height: 1.65;
  margin-bottom: 10px;
}

.step-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Tarifs
   -------------------------------------------------------------------------- */
.price-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-600);
}

.price-card-val {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.1;
  margin-bottom: 12px;
}

.price-card-desc {
  font-size: 1.02rem;
  color: var(--slate-600);
  line-height: 1.5;
  font-weight: 500;
}

/* Note informative / Callouts */
.callout-box {
  background: var(--green-50);
  border: 1px solid rgba(41, 147, 71, 0.25);
  border-left: 5px solid var(--green-600);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-800);
}

.callout-box strong {
  color: var(--green-800);
}

.callout-box.blue {
  background: var(--navy-50);
  border-color: rgba(23, 62, 130, 0.2);
  border-left-color: var(--navy-700);
}

.callout-box.blue strong {
  color: var(--navy-900);
}

/* Section Tarifs dédiée */
.tarif-wrapper {
  max-width: 1040px;
  margin: 0 auto;
}

.tarif-date-badge {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-700);
  margin-bottom: 32px;
}

.tarif-block {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
}

.tarif-banner-head {
  padding: 18px 24px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.tarif-banner-head.blue {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
}

.tarif-banner-head.green {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
}

.tarif-block-subtitle {
  text-align: center;
  font-style: italic;
  padding: 12px 20px 6px;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.tarif-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.modern-table th {
  padding: 14px 20px;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modern-table .th-blue {
  background: #234f96;
}

.modern-table .th-green {
  background: #25783d;
}

.modern-table th:last-child,
.modern-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.modern-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-800);
  font-size: 1.02rem;
}

.modern-table tbody tr:hover {
  background-color: var(--slate-50);
}

.modern-table td:last-child {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.12rem;
}

.tarif-travel-footer {
  padding: 18px 24px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.tarif-travel-footer.blue {
  background: var(--navy-50);
  color: var(--navy-900);
  border-top: 1px solid var(--navy-100);
}

.tarif-travel-footer.green {
  background: var(--green-50);
  color: var(--green-800);
  border-top: 1px solid var(--green-100);
}

.tarif-travel-footer strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tarif-vat-mention {
  text-align: center;
  font-weight: 700;
  color: var(--slate-600);
  margin-top: 24px;
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Section Professionnels — Action Panel
   -------------------------------------------------------------------------- */
.pro-action-panel {
  max-width: 960px;
  margin: 32px auto;
  padding: 34px;
  background: linear-gradient(135deg, var(--green-50) 0%, #ffffff 100%);
  border: 1px solid rgba(41, 147, 71, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.pro-action-panel h3 {
  font-family: var(--font-heading);
  color: var(--green-800);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.pro-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pro-action-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid rgba(41, 147, 71, 0.18);
  font-weight: 600;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast);
}

.pro-action-item:hover {
  transform: translateX(3px);
  border-color: var(--green-500);
}

.pro-action-icon {
  color: var(--green-600);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* CAF Accordion Impayé */
.caf-accordion {
  margin-top: 16px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.caf-accordion summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  background: var(--navy-50);
  transition: background var(--transition-fast);
  user-select: none;
}

.caf-accordion summary::-webkit-details-marker {
  display: none;
}

.caf-accordion summary:hover {
  background: var(--navy-100);
}

.caf-accordion summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-700);
  transition: transform var(--transition-fast);
}

.caf-accordion[open] summary::after {
  content: "−";
}

.caf-content {
  padding: 20px 24px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--slate-800);
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
}

.caf-content p {
  margin: 12px 0;
}

.caf-source-tag {
  text-align: right;
  font-style: italic;
  font-weight: 700;
  color: var(--slate-500);
  margin-top: 16px !important;
}

/* Experience Block (CAF Assermenté) */
.experience-prestige-block {
  margin: 44px auto 0;
  max-width: 920px;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.experience-prestige-block::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(41, 147, 71, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.experience-prestige-block h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.experience-lead-exp {
  font-size: 1.22rem;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 14px;
}

.experience-lead-exp .agent {
  color: #a7f3d0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.experience-prestige-block p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--navy-100);
  max-width: 800px;
  margin: 0 auto;
}

/* Objectif Banner */
.objective-banner {
  background: var(--green-50);
  border: 1px solid rgba(41, 147, 71, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-800);
  line-height: 1.6;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Section Collectivités
   -------------------------------------------------------------------------- */
.history-banner {
  max-width: 880px;
  margin: 16px auto 32px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--navy-50) 0%, #ffffff 100%);
  border: 2px solid var(--navy-100);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--navy-800);
  box-shadow: var(--shadow-xs);
}

.conditions-list {
  max-width: 800px;
  margin: 16px auto 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.conditions-list li {
  position: relative;
  padding-left: 32px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.conditions-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-600);
  font-weight: 900;
  font-size: 1.2rem;
}

.collectivite-cta-box {
  max-width: 900px;
  margin: 44px auto 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.collectivite-cta-box h2 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.collectivite-cta-box p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--navy-100);
  margin-bottom: 14px;
}

.collectivite-cta-box .btn {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Section Contact
   -------------------------------------------------------------------------- */
.contact-hub-wrapper {
  max-width: 1040px;
  margin: 0 auto;
}

.contact-main-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin-bottom: 40px;
}

.contact-card-header {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--white);
  padding: 44px 36px 36px;
  text-align: center;
}

.contact-card-header .contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
}

.contact-logo-frame {
  max-width: 360px;
  margin: 0 auto 28px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.contact-logo-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact Identity Badge */
.contact-id-box {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 780px;
  margin: 0 auto;
}

.contact-officer-name {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

.contact-officer-brand {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 900;
  color: #93c5fd;
  line-height: 1.1;
  margin-top: 4px;
}

.contact-officer-exp {
  font-size: clamp(0.75rem, 1.6vw, 0.92rem);
  color: var(--navy-100);
  margin-top: 6px;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.contact-officer-public {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 18px;
  background: var(--green-700);
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
}

.contact-direct-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.contact-direct-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  color: var(--white);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.contact-direct-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.copy-btn-mini {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.copy-btn-mini:hover {
  background: rgba(255, 255, 255, 0.35);
}

.contact-siret-mention {
  margin-top: 22px;
  font-size: 1rem;
  color: var(--navy-100);
}

/* Contact Guidance Box */
.contact-guidance-container {
  padding: 34px 40px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.guidance-step {
  margin-bottom: 24px;
}

.guidance-step:last-child {
  margin-bottom: 0;
}

.guidance-step h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guidance-step p {
  color: var(--slate-700);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 8px;
}

.guidance-step p:last-child {
  margin-bottom: 0;
}

/* Contact Form */
.contact-form-body {
  padding: 40px;
  background: var(--white);
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-900);
  text-align: center;
  margin-bottom: 30px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.form-group .required-star {
  color: #dc2626;
}

.form-control {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  background: var(--white);
  color: var(--slate-900);
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

select.form-control {
  cursor: pointer;
}

.form-control:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(23, 62, 130, 0.15);
}

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

/* File Upload Custom Area */
.file-upload-box {
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  background: var(--slate-50);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-upload-box:hover {
  border-color: var(--navy-600);
  background: var(--navy-50);
}

.file-upload-box input[type="file"] {
  width: 100%;
  cursor: pointer;
}

.contact-file-help {
  display: block;
  margin-top: 8px;
  color: var(--slate-500);
  font-size: 0.88rem;
  line-height: 1.45;
}

.file-selected-list {
  list-style: none;
  margin-top: 10px;
  text-align: left;
  font-size: 0.92rem;
  color: var(--navy-800);
}

.file-selected-list li {
  padding: 4px 8px;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  border: 1px solid var(--slate-200);
}

.file-error {
  color: #dc2626;
  font-weight: 700;
  display: block;
  margin-top: 6px;
}

/* Consentement */
.consent-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0 28px;
  font-size: 0.96rem;
  color: var(--slate-700);
  line-height: 1.45;
}

.consent-wrapper input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--navy-800);
  cursor: pointer;
}

.btn-submit-contact {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.12rem;
  font-weight: 800;
}

.contact-form-status {
  min-height: 1.5em;
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.96rem;
  border-radius: var(--radius-md);
  padding: 0;
}

.contact-form-status.status-info {
  background: var(--navy-50);
  color: var(--navy-900);
  padding: 14px 18px;
  border: 1px solid var(--navy-100);
}

.contact-form-status.status-success {
  background: var(--green-50);
  color: var(--green-800);
  padding: 14px 18px;
  border: 1px solid rgba(41, 147, 71, 0.3);
}

.contact-form-status.status-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 14px 18px;
  border: 1px solid #fecaca;
}

/* Honeypot Antispam */
.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Legal Cards (Assurance & Médiateur) */
.legal-cards-container {
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--navy-100);
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--slate-400);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 16px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--slate-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--slate-400);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Back to top floating button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  border: 1px solid var(--navy-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .cards-grid-3,
  .price-cards-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .audience-card-home {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .brand-logo {
    height: 44px;
  }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  /* Mobile Drawer */
  .mobile-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 35, 75, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
  }

  .mobile-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(85vw, 360px);
    background: var(--white);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
  }

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

  .mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-200);
  }

  .mobile-drawer-close {
    font-size: 1.5rem;
    padding: 6px;
    color: var(--slate-600);
  }

  .mobile-nav-links {
    list-style: none;
    display: grid;
    gap: 8px;
  }

  .nav-drawer-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--navy-900);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background var(--transition-fast);
  }

  .nav-drawer-link:hover,
  .nav-drawer-link.active {
    background: var(--navy-50);
    color: var(--navy-800);
  }

  .cards-grid-2,
  .cards-grid-4,
  .pro-action-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .step-card {
    flex-direction: column;
    gap: 16px;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .contact-form-body,
  .contact-guidance-container,
  .contact-card-header {
    padding: 24px 20px;
  }

  .contact-officer-exp {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   Styles d'Impression (@media print)
   -------------------------------------------------------------------------- */
@media print {
  .top-bar,
  .site-header,
  .mobile-drawer,
  .back-to-top,
  .sitebtn,
  .btn,
  .contact-form,
  .footer-bottom {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }

  .page-section {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    page-break-after: always;
  }

  .card-item,
  .step-card,
  .tarif-block {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }

  .modern-table th {
    background: #eee !important;
    color: #000 !important;
  }
}
