:root {
  --primary: #2e3083;
  --secondary: #4d2f91;
  --accent: #0f3460;
  --highlight: #4d2f91;
  --light: #f5f5f5;
  --primary-light: #fafaff;
  --secondary-light: #fcf7ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--light);
  color: var(--primary);
  line-height: 1.8;
}

#message {
  min-height: 250px;
}

/* Navigation - Minimal Clean */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--primary) !important;
}

.nav-link {
  color: #666 !important;
  font-weight: 500;
  margin: 0 1rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--highlight) !important;
}

/* Hero - Minimal with Typography Focus */
.hero {
  padding: 100px 0;
  background: linear-gradient(180deg, white 0%, #fafafa 100%);
  border-bottom: 1px solid #eee;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.hero-highlight {
  color: var(--highlight);
}

.hero-content p {
  font-size: 1.3rem;
  color: black;
  margin-bottom: 2rem;
  max-width: 600px;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-primary-alt {
  background: var(--primary);
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-alt:hover {
  background: var(--highlight);
  transform: translateX(2px);
}

.btn-secondary-alt {
  background: transparent;
  color: var(--primary);
  padding: 12px 32px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary-alt:hover {
  background: var(--primary);
  color: white;
}

.filter-btn {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: 0.2s ease;
}

.filter-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filter-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.geometric-shape {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--highlight) 100%);
  border-radius: 40px;
  position: relative;
  opacity: 0.8;
}

/* Stats Section - Clean Layout */
.stats {
  padding: 60px 0;
  background: white;
}

.stat-box {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid #eee;
}

.stat-box:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--highlight);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #999;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features - Grid with Icons */
.features {
  padding: 80px 0;
  background: white;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.section-subtitle {
  color: #999;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.feature-box {
  padding: 2rem;
  background: var(--light);
  border-radius: 12px;
  transition: all 0.3s;
  text-align: center;
  border: 2px solid transparent;
}

.feature-box:hover {
  background: white;
  border-color: var(--highlight);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--highlight);
  margin-bottom: 1rem;
}

.feature-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.feature-box p {
  color: black;
  font-size: 0.95rem;
}

/* Mission Section - Text Focus */
.mission {
  padding: 80px 0;
  background: var(--primary);
  color: white;
}

.mission h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -1px;
}

.mission p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.mission-list {
  list-style: none;
  margin-top: 2rem;
}

.mission-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.05rem;
}

.mission-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--highlight);
  font-weight: bold;
}

/* CTA - Simple and Bold */
.cta {
  padding: 80px 0;
  background: white;
  border-top: 1px solid #eee;
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
}

.cta-content p {
  font-size: 1.2rem;
  color: black;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: var(--light);
  color: black;
  padding: 3rem 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary-alt,
  .btn-secondary-alt {
    width: 100%;
    text-align: center;
  }

  .stat-box {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
  }

  .stat-box:last-child {
    border-bottom: none;
  }
}

.pro-acc .accordion-item {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: #fff;
}

/* Bouton fermé */
.pro-acc .accordion-button {
  background: #f9f9f9 !important;
  color: var(--primary) !important;
  padding: 1.2rem 1.5rem;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
}

/* Bouton ouvert */
.pro-acc .accordion-button:not(.collapsed) {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 2px var(--primary) !important;
}

/* Hover */
.pro-acc .accordion-button:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* Corps */
.pro-acc .accordion-body {
  background: #fff;
  padding: 1.5rem;
  line-height: 1.6;
  color: var(--secondary);
}

/* Titre */
.pro-acc .fw-bold {
  font-size: 1.05rem;
  color: var(--primary);
}

/* Sous-texte */
.pro-acc .text-muted.small {
  font-size: 0.85rem;
  color: #6c6c6c !important;
}

/* Animation ouverture */
.accordion-collapse {
  transition:
    height 0.3s ease,
    opacity 0.3s ease;
}

.glass-acc .accordion-item {
  background: rgba(15, 52, 96, 0.15);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.glass-acc .accordion-button {
  background: transparent !important;
  color: #fff !important;
  padding: 1.2rem 1.5rem;
  border: none !important;
}

.glass-acc .accordion-button:not(.collapsed) {
  background: rgba(15, 52, 96, 0.35) !important;
  color: #fff !important;
}

.glass-acc .accordion-body {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 1.5rem;
}

.darkblue-acc .accordion-item {
  background: #0f1a2b;
  border: 1px solid #1f2d40;
  border-radius: 10px;
  margin-bottom: 12px;
}

.darkblue-acc .accordion-button {
  background: #16213e !important;
  color: #dce3f0 !important;
  padding: 1.2rem 1.5rem;
  border: none !important;
  transition: all 0.25s ease;
}

.darkblue-acc .accordion-button:not(.collapsed) {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 2px var(--highlight);
}

.darkblue-acc .accordion-body {
  background: #0f1a2b;
  color: #c9d6e3;
  padding: 1.5rem;
}

.fluent-acc .accordion-item {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f3f6fa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.fluent-acc .accordion-button {
  background: #f3f6fa !important;
  color: var(--primary) !important;
  padding: 1.2rem 1.5rem;
  border: none !important;
  transition: all 0.25s ease;
}

.fluent-acc .accordion-button:not(.collapsed) {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 2px var(--primary);
}

.fluent-acc .accordion-body {
  background: #fff;
  padding: 1.5rem;
  color: var(--secondary);
}

.apple-acc .accordion-item {
  border-bottom: 1px solid #e5e5e5;
}

.apple-acc .accordion-button {
  background: #fff !important;
  border: none !important;
  font-weight: 500;
  padding: 1.3rem;
  color: var(--primary) !important;
  transition: 0.2s;
}

.apple-acc .accordion-button:hover {
  background: #f0f4ff !important;
}

.apple-acc .accordion-button:not(.collapsed) {
  background: #e8f0ff !important;
  color: var(--accent) !important;
}

.apple-acc .accordion-button::after {
  transform: rotate(-90deg);
  transition: 0.2s;
}

.apple-acc .accordion-button:not(.collapsed)::after {
  transform: rotate(0deg);
}

.apple-acc .accordion-body {
  background: #fff;
  padding: 1.5rem;
  color: #444;
}

.faq-btn {
  background: #fff;
  padding: 1.4rem;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-sub {
  font-size: 0.85rem;
  color: #6c757d;
}

.cards-grid {
  column-gap: 16px;
}

.card {
  break-inside: avoid;
  background: white;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.card.org {
  background: var(--primary-light);
  border-left: 6px solid var(--primary);
}

.card.ind {
  background: var(--secondary-light);
  border-left: 6px solid var(--secondary);
}

/* 📱 Mobile */
@media (max-width: 600px) {
  .cards-grid {
    column-count: 1;
  }
}

/* 📱📟 Tablette */
@media (min-width: 601px) and (max-width: 1024px) {
  .cards-grid {
    column-count: 2;
  }
}

/* 🖥️ Desktop */
@media (min-width: 1025px) {
  .cards-grid {
    column-count: 3;
  }
}

@media (min-width: 1400px) {
  .cards-grid {
    column-count: 4;
  }
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.card-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
}

.card-subtitle {
  margin: 4px 0 6px;
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
}

.card-responsable {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #666;
}

.card-message {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
}

.avatar {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-box {
  border-radius: 12px;
  padding: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.feature-acc-btn {
  background: #fff !important;
  padding: 20px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.feature-icon {
  font-size: 28px;
  color: #4d2f91;
}

.modal-content {
  border-radius: 16px;
  background: #fff;
}

.signature-success-modal {
  border: 0;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 52, 96, 0.2);
}

.signature-success-header {
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: #edf9f3;
  border-bottom: 1px solid #cceedd;
}

.signature-success-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.signature-success-title-wrap .modal-title {
  color: #14532d;
  font-weight: 700;
}

.signature-success-icon {
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 1rem;
}

.signature-success-modal .modal-body {
  padding: 26px 28px 12px;
  color: #334155;
  line-height: 1.65;
}

.signature-success-lead {
  margin-bottom: 20px;
  color: #172554;
  font-size: 1.05rem;
  font-weight: 600;
}

.signature-success-link-box {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #c7ead5;
  border-left: 4px solid #16a34a;
  border-radius: 8px;
  background: #f6fdf8;
}

.signature-success-link-label {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signature-success-link-box a {
  color: #166534;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.signature-success-link-box a i {
  margin-left: 6px;
  font-size: 0.8em;
}

.signature-success-copy {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.signature-success-modal .modal-footer {
  padding: 12px 28px 24px;
  border-top: 0;
}

.signature-success-modal .modal-footer .btn-primary {
  padding: 10px 24px;
  border: 0;
  border-radius: 6px;
  background: #2e3083;
  font-weight: 700;
}

@media (max-width: 576px) {
  .signature-success-header {
    padding: 18px;
  }

  .signature-success-modal .modal-body {
    padding: 22px 20px 8px;
  }

  .signature-success-modal .modal-footer {
    padding: 10px 20px 20px;
  }
}

/* Style interne identique au feature-box */
.inner-feature {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.inner-acc-btn {
  background: #f8f9fa !important;
  padding: 12px 16px;
  font-size: 1rem;
}

.inner-acc-btn:not(.collapsed) {
  background: #4d2f91 !important;
  color: white !important;
}

.inner-feature .accordion-body {
  background: white;
  padding: 15px;
}

.section-light {
  background: #f5f7ff;
  padding: 60px 0;
}

.header-hero {
  background: linear-gradient(135deg, #2a4fff, #b28bff);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.separator-center {
  text-align: center;
  margin: 30px 0;
}

.separator-center img {
  width: 450px;
  opacity: 0.9;
  display: inline-block;
}

.accordion-body {
  text-align: left !important;
}

[data-route] {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
[data-route]:hover {
  color: var(--highlight);
}
.btn-primary-alt[data-route] {
  color: white !important;
}

/* ==================== FORM STYLES ==================== */

/* Hero */
.form-hero {
  padding: 60px 0;
  background: linear-gradient(180deg, white 0%, #fafafa 100%);
  border-bottom: 1px solid #eee;
  text-align: center;
}

.form-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.form-hero p {
  font-size: 1.1rem;
  color: black;
  max-width: 500px;
  margin: 0 auto;
}

/* Form Section */
.form-section {
  padding: 80px 0;
  background: white;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--light);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid #eee;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control,
.form-select,
textarea {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  transition: all 0.3s;
  font-size: 1rem;
  background: white;
  color: var(--primary);
  width: 100%;
  max-width: 100%;
}

.form-control::placeholder,
textarea::placeholder {
  color: #bbb;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
  outline: none;
}

.form-select {
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-helper {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.5rem;
}

/* Checkbox */
.form-check {
  margin-bottom: 1.5rem;
}

.form-check-input {
  width: 1.3em;
  height: 1.3em;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s;
  cursor: pointer;
  margin-top: 0.2em;
}

.form-check-input:checked {
  background-color: var(--highlight);
  border-color: var(--highlight);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-check-label {
  color: #666;
  cursor: pointer;
  margin-left: 0.75rem;
}

/* Button */
.btn-submit {
  width: 100%;
  padding: 14px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}

.btn-submit:hover {
  background: var(--highlight);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(233, 69, 96, 0.2);
}

.btn-submit:active {
  transform: translateY(0);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Success Message */
.success-message {
  background: #10b981;
  border: 2px solid #059669;
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: none;
  text-align: center;
  font-weight: 600;
  animation: slideDown 0.3s ease;
}

.success-message.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Steps */
.form-step {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

.form-step:last-of-type {
  border-bottom: none;
}

.form-step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-step-icon {
  width: 32px;
  height: 32px;
  background: var(--highlight);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

/* --- 50% / 50% LAYOUT --- */
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.appel-column {
  width: 100%;
}

.form-column {
  width: 100%;
  position: sticky;
  top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .form-hero h1 {
    font-size: 1.8rem;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .form-label {
    font-size: 0.9rem;
  }
  .form-columns {
    grid-template-columns: 1fr;
  }

  .form-column {
    position: static;
  }
}

.required::after {
  content: ' *';
  color: red;
  font-weight: bold;
}

.signature-type-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.signature-type-selector-simple {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.signature-type-selector-simple label {
  font-size: 1rem;
  cursor: pointer;
}

.signature-type-selector-simple input {
  margin-right: 0.4rem;
}

.radio-option input:checked + span,
.radio-option input:checked {
  background: var(--primary);
  color: white;
}

.ref {
  text-decoration: none;
  color: #1a73e8;
  font-size: 0.75em;
}
.ref:hover {
  text-decoration: underline;
}

.ref {
  font-size: 0.7rem;
  color: #555;
  margin-top: 4px;
}
.noteBasPage {
  font-size: 0.75rem; /* plus petit */
  opacity: 0.85; /* plus discret */
  line-height: 1.2; /* réduit l’espace vertical */
}
p.noteBasPage {
  font-size: 0.75rem; /* ou plus petit si tu veux */
  line-height: 1.2;
}

#announcement-bar {
  background: #ffd700;
  color: #000;
  padding: 10px 20px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}
#announcement-bar a {
  color: #0056b3;
  text-decoration: underline;
  margin-left: 8px;
}
