:root {
  --capitam-blue: #0b2545;
  --capitam-dark: #0b1420;
  --capitam-gold: #d4af37;
  --capitam-light-blue: #1a3a5c;
  --capitam-gray: #f8f9fa;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--capitam-blue);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
}

.lead-small {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
}

.navbar-brand:hover {
  opacity: 0.9;
}

/* Logo Styles - Inspired by logo.html */
.logo-text {
  font-family: "Georgia", "Times New Roman", serif !important;
  font-weight: 600 !important;
  font-size: 1.8rem !important;
  line-height: 1 !important;
  letter-spacing: 0.5px !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
  white-space: nowrap !important;
}

/* "Capit" en bleu */
.logo-text .base {
  color: var(--capitam-blue) !important;
  text-shadow: 0 2px 0 rgba(11, 37, 69, 0.08), 0 6px 14px rgba(0, 0, 0, 0.55) !important;
}

/* "AM" en doré avec effet relief */
.logo-text .m {
  display: inline-block !important;
  margin-left: 2px !important;
  background: linear-gradient(135deg, #f7e7a4 0%, #d8aa2c 22%, #f3c34c 45%, #c77818 68%, #ffdd7a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-stroke: 1px rgba(35, 25, 10, 0.55) !important;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.18), 0 8px 16px rgba(0, 0, 0, 0.55) !important;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  color: #555 !important;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--capitam-blue) !important;
}

.nav-link.active {
  color: var(--capitam-blue) !important;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--capitam-gold);
  border-radius: 2px;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80') center/cover;
  opacity: 0.08;
  z-index: 0;
}

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

.hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease;
}

.hero-visual {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.8) 0%, rgba(11, 20, 32, 0.85) 100%), 
              url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&q=80');
  min-height: 350px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: fadeInRight 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Index page visuals */
.index-visual {
  min-height: 400px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.index-visual:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease;
}

/* CTA Sections */
.cta-section {
  background-color: var(--capitam-blue) !important;
  color: #fff !important;
}

.cta-section h2,
.cta-section .lead,
.cta-section .lead-small,
.cta-section p {
  color: #fff !important;
}

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

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

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--capitam-gold);
  border: 2px solid var(--capitam-gold);
  color: #fff;
}

.btn-primary:hover {
  background: transparent;
  border-color: var(--capitam-gold);
  color: var(--capitam-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
}

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

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

.btn-outline-gold:hover {
  background: var(--capitam-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

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

.section-light {
  background: var(--capitam-gray);
}

/* Pillars (3 piliers) */
.pillars-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--capitam-blue), var(--capitam-light-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(11, 37, 69, 0.2);
  transition: var(--transition);
}

.pillars-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(11, 37, 69, 0.3);
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-service {
  background: #fff;
  height: 100%;
  position: relative;
}

.card-service .card-body {
  padding: 2rem;
}

.card-title {
  color: var(--capitam-blue);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  position: relative;
  padding-left: 0;
}

/* Numéros d'étapes stylisés pour la page Méthode */
.card-service .card-title::before {
  content: '';
  width: 40px;
  height: 4px;
  background: var(--capitam-gold);
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  border-radius: 2px;
}

/* Images */
.img-abstract {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.85) 0%, rgba(26, 58, 92, 0.85) 100%), 
              url('https://images.unsplash.com/photo-1551836022-d5d88e9218df?w=600&q=80');
  min-height: 180px;
  max-height: 220px;
  border-radius: 8px;
  margin-top: 1.5rem;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: var(--transition);
}

.img-abstract:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Images spécifiques par contexte */
.img-abstract.img-finance {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%), 
              url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?w=600&q=80');
  background-size: cover;
  background-position: center;
  min-height: 180px;
  max-height: 220px;
}

.img-abstract.img-analysis {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%), 
              url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=600&q=80');
  background-size: cover;
  background-position: center;
  min-height: 180px;
  max-height: 220px;
}

.img-abstract.img-meeting {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%), 
              url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=600&q=80');
  background-size: cover;
  background-position: center;
  min-height: 180px;
  max-height: 220px;
}

.img-abstract.img-contract {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%), 
              url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=600&q=80');
  background-size: cover;
  background-position: center;
  min-height: 180px;
  max-height: 220px;
}

.img-abstract.img-growth {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%), 
              url('https://images.unsplash.com/photo-1579532537598-459ecdaf39cc?w=600&q=80');
  background-size: cover;
  background-position: center;
  min-height: 180px;
  max-height: 220px;
}

.img-abstract.img-team {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%), 
              url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=600&q=80');
  background-size: cover;
  background-position: center;
  min-height: 180px;
  max-height: 220px;
}

.img-abstract.img-building {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%), 
              url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=600&q=80');
  background-size: cover;
  background-position: center;
  min-height: 180px;
  max-height: 220px;
}

/* Footer */
.footer {
  background: var(--capitam-dark);
  color: #eee;
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

.footer a {
  color: #eee;
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--capitam-gold);
}

/* Contact Info Icons */
.contact-info-item {
  transition: transform 0.3s ease;
}

.contact-info-item:hover {
  transform: translateX(5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--capitam-blue) 0%, #0a1f35 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--capitam-gold);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
  background: linear-gradient(135deg, var(--capitam-gold) 0%, #d8aa2c 100%);
  color: var(--capitam-blue);
  transform: rotate(10deg) scale(1.1);
}

.contact-info-item h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--capitam-blue);
}

.contact-info-item a {
  color: #333;
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: var(--capitam-gold);
}

/* Forms */
.form-control {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--capitam-blue);
  box-shadow: 0 0 0 0.2rem rgba(11, 37, 69, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--capitam-blue);
  margin-bottom: 0.5rem;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--capitam-gold);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  /* Hero Section */
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero .lead {
    font-size: 1rem;
  }
  
  .hero-visual {
    min-height: 250px;
    margin-top: 2rem;
  }
  
  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .lead-small {
    font-size: 1rem;
  }
  
  /* Sections */
  .section-padding {
    padding: 2.5rem 0;
  }
  
  /* Buttons */
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Navbar */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .nav-link.active::after {
    display: none;
  }
  
  /* Cards */
  .card-service {
    margin-bottom: 1.5rem;
  }
  
  /* Images */
  .img-abstract,
  .img-finance,
  .img-analysis,
  .img-meeting,
  .img-contract,
  .img-growth,
  .img-team,
  .img-building,
  .img-professional {
    min-height: 200px;
    margin-top: 1.5rem;
  }
  
  /* Piliers icons */
  .pillars-icon {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }
  
  /* Footer */
  footer {
    text-align: center;
  }
  
  footer .row > div {
    margin-bottom: 1.5rem;
  }
  
  /* CTA Sections */
  .cta-section h2 {
    font-size: 1.4rem;
  }
  
  .cta-section .lead-small {
    font-size: 0.95rem;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* Accordion */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-button {
  background: #fff;
  color: var(--capitam-blue);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
  box-shadow: none !important;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background: var(--capitam-blue);
  color: #fff;
}

.accordion-button:hover {
  background: var(--capitam-light-blue);
  color: #fff;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  background: #fff;
  color: #555;
  line-height: 1.8;
}

/* Pricing cards specific styles */
.card-service h4 {
  color: var(--capitam-gold);
  font-size: 2rem;
  font-weight: 700;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

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

/* Selection color */
::selection {
  background: var(--capitam-gold);
  color: #fff;
}

/* Animations on scroll */
@media (prefers-reduced-motion: no-preference) {
  .card, .pillars-icon {
    animation: fadeInUp 0.6s ease;
  }
}
