/* ============================================
   CRÉEZ VOTRE ENTREPRISE - STYLESHEET
   CCMQ Programme d'accompagnement entrepreneurial
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #003DA5;
  --primary-light: #1A5CC8;
  --primary-dark: #002366;
  --accent: #00843D;
  --accent-light: #00A84E;
  --accent-dark: #00612D;
  --gold: #C8973E;
  --gold-light: #E8B84D;
  --bg-light: #F5F7FA;
  --bg-white: #FFFFFF;
  --bg-section: #EBF0F7;
  --text-dark: #1A2332;
  --text-body: #3D4F63;
  --text-muted: #7A8B9E;
  --border: #D6DEE8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  display: none;
}

/* --- Navigation --- */
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--bg-section);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.dropdown-menu a:hover {
  background: var(--bg-section);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-cta a {
  background: var(--accent);
  color: #fff !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-cta a:hover {
  background: var(--accent-dark);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(26, 122, 92, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 151, 62, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
}

.hero h1 {
  color: #fff;
  font-size: 3.25rem;
  max-width: 800px;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero .lead {
  font-size: 1.2rem;
  max-width: 640px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 122, 92, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn-secondary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-gold:hover {
  background: var(--gold-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-section);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn-outline-dark:hover {
  border-color: var(--primary);
  background: var(--bg-section);
  color: var(--primary);
}

.btn .arrow {
  transition: transform var(--transition);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

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

.section-dark {
  background: var(--primary);
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header .overline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- Cards --- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.card-icon.blue {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.card-icon.gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 0;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.card .card-link:hover {
  color: var(--accent-dark);
}

/* --- Profile cards on homepage --- */
.profile-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.profile-card .profile-icon {
  width: 72px;
  height: 72px;
  background: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.profile-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.profile-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* --- Reassurance / Trust bar --- */
.trust-bar {
  background: var(--bg-section);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item .trust-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid var(--border);
}

/* --- Pillars / Features --- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.pillar {
  text-align: center;
  padding: 2rem 1.5rem;
}

.pillar .pillar-num {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}

.pillar h4 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Steps / Timeline --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 2rem;
  position: relative;
  padding-bottom: 2.5rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step-marker {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-marker .step-dot {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.step-marker .step-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 0.5rem;
}

.step:last-child .step-line {
  display: none;
}

.step-content h4 {
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: var(--primary);
  color: #fff;
}

thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

tbody td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: var(--bg-light);
}

tbody tr:hover {
  background: #f0f4f8;
}

.tarif-free {
  color: var(--accent);
  font-weight: 700;
}

/* --- Alert / Notice box --- */
.notice {
  background: #FEF3C7;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.925rem;
}

.notice-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.notice-info {
  background: #DBEAFE;
  border-left-color: var(--primary-light);
}

.notice-success {
  background: #D1FAE5;
  border-left-color: var(--accent);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  font-family: inherit;
  line-height: 1.4;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1.25rem;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.12);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-card h3 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail .ci-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail .ci-text {
  font-size: 0.925rem;
  line-height: 1.6;
}

.contact-detail .ci-text strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* --- Page Hero (internal pages) --- */
.page-hero {
  padding: 8rem 0 3.5rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  font-size: 0.7rem;
}

/* --- Juridique Cards --- */
.juridique-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: border-color var(--transition);
}

.juridique-card:hover {
  border-color: var(--primary-light);
}

.juridique-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.juridique-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-section);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.juridique-card .detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.detail-item {
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.detail-item .detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.detail-item .detail-value {
  font-size: 0.925rem;
  color: var(--text-dark);
  line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.cta-banner .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

/* --- Why choose us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.why-item .why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-white) 100%);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}

.why-item h4 {
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Advantages list --- */
.advantages-list {
  list-style: none;
}

.advantages-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.advantages-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

/* --- Stats bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* --- Two columns layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-text h2 {
  margin-bottom: 1rem;
}

.two-col-text p {
  margin-bottom: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 6rem 2rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
    gap: 0.25rem;
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .nav-cta a {
    display: block;
    text-align: center;
  }

  .nav-dropdown > a::after {
    margin-left: auto;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 { font-size: 2.25rem; }
  .page-hero h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .juridique-card .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .trust-bar .container {
    flex-direction: column;
    gap: 1rem;
  }

  table {
    font-size: 0.8rem;
  }

  thead th, tbody td {
    padding: 0.7rem 0.75rem;
  }
}

/* --- Overlay (mobile menu) --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Hero layout with logo --- */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-logo {
  flex-shrink: 0;
}

.hero-logo img {
  width: 480px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .hero-logo img {
    width: 280px;
  }
}

@media (max-width: 640px) {
  .hero-logo img {
    width: 220px;
  }
}

/* --- Trust bar with scrolling logos --- */
.trust-bar {
  background: #fff;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.trust-bar::before,
.trust-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.trust-bar::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.trust-bar::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.trust-logos-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.trust-logos-track img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.trust-logos-track img:hover {
  opacity: 1;
}

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

.trust-bar:hover .trust-logos-track {
  animation-play-state: paused;
}

@media (max-width: 640px) {
  .trust-logos-track {
    gap: 2.5rem;
  }
  .trust-logos-track img {
    height: 30px;
  }
}

/* --- Social links with SVG icons --- */
.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-links a svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.75);
  transition: fill var(--transition);
}

.social-links a:hover {
  background: var(--accent);
}

.social-links a:hover svg {
  fill: #fff;
}

/* Social links on light bg (contact card in light context) */
.social-links-dark a {
  background: var(--bg-section);
}

.social-links-dark a svg {
  fill: var(--text-muted);
}

.social-links-dark a:hover {
  background: var(--primary);
}

.social-links-dark a:hover svg {
  fill: #fff;
}

.footer-social {
  margin-top: 1.25rem;
}

/* --- Footer reorganized --- */
.footer-brand .footer-contact-info {
  margin-top: 0.75rem;
  font-size: 0.825rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}

.footer-brand .footer-contact-info a {
  color: rgba(255,255,255,0.7);
}

.footer-brand .footer-contact-info a:hover {
  color: #fff;
}

.footer-social {
  margin-top: 0.75rem;
}

/* --- Google Map embed --- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

/* --- CAE Search --- */
.cae-search-box {
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.cae-search-box input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cae-search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 61, 165, 0.1);
}

.cae-search-box .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* --- CAE filter pills (modernized) --- */
.cae-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.cae-pill {
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--bg-white);
  color: var(--text-body);
  font-size: 0.825rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cae-pill:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: rgba(0, 61, 165, 0.04);
}

.cae-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 61, 165, 0.2);
}

@media (max-width: 640px) {
  .cae-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.775rem;
  }
}

.cae-results {
  max-height: 600px;
  overflow-y: auto;
}

.cae-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.cae-item:hover {
  background: var(--bg-light);
}

.cae-code {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  background: var(--bg-section);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
}

.cae-desc {
  font-size: 0.925rem;
  color: var(--text-body);
}

.cae-count {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* --- Form sections --- */
.form-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.form-section h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-section);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section h3 .section-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.founder-block {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.founder-block h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.form-group input[type="file"] {
  padding: 0.6rem;
}

/* --- Créer mon entreprise - Prominent CTA --- */
.cta-creation {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-light) 100%);
  padding: 3.5rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-creation::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-creation h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-creation p {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

.cta-creation .btn-create {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--accent-dark);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-creation .btn-create:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  color: var(--accent-dark);
}

.cta-creation .btn-create .create-icon {
  font-size: 1.3rem;
}

/* --- Price highlight --- */
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* --- Logo display in pages --- */
.logo-display {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-display img {
  height: 120px;
  width: auto;
  margin: 0 auto;
}

/* --- Misc --- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
