/**
 * 04. COMPOSANTS, NAVIGATION, SECTIONS & FORMULAIRES
 * -----------------------------------------------------------------------------
 * Rôle : Regroupe l'ensemble des composants visuels et interactifs du site 
 * MB Comptabilité (boutons, cartes, barre de navigation, hero, services, 
 * à propos, formulaires et pied de page).
 * -----------------------------------------------------------------------------
 */

/* ==========================================
   4. COMPOSANTS (Boutons, Cartes, Listes)
   ========================================== */

/* --- Boutons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
}

.btn-primary { 
  background-color: var(--primary-button); 
  color: var(--white); 
}
.btn-primary:hover { 
  background-color: var(--primary-hover); 
}

.btn-secondary { 
  background-color: var(--secondary); 
  color: var(--white); 
}
.btn-secondary:hover { 
  background-color: var(--secondary-hover); 
}

.btn-outline { 
  border-color: var(--primary); 
  color: var(--primary); 
  background-color: transparent; 
}
.btn-outline:hover { 
  background-color: var(--primary); 
  color: var(--white); 
}

.btn-group { 
  display: flex; 
  gap: var(--space-sm); 
  flex-wrap: wrap; 
}

/* --- Cartes génériques --- */
.card {
  background-color: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-highlight { 
  border-left: 4px solid var(--primary); 
}
.card-icon { 
  font-size: 2.5rem; 
  margin-bottom: var(--space-xs); 
}

/* --- Listes à puces (Check) --- */
.list-check { 
  margin-top: var(--space-sm); 
}
.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}


/* ==========================================
   5. BARRE DE NAVIGATION (Desktop & Mobile)
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(5, 42, 72, 0.03);
  width: 100%;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  width: 100%;
}

/* --- Logo --- */
.logo-link { 
  display: flex; 
  align-items: center; 
  z-index: 10001; 
}
.site-logo {
  height: 60px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

/* --- Menu (Liens) --- */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--gray-600);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.25s ease-in-out;
  text-decoration: none;
}

/* Suppression de l'ancienne ligne de soulignement */
.nav-item::after {
  display: none !important;
}

/* Effet au survol : fond très léger et texte mis en valeur */
.nav-item:hover {
  color: var(--primary);
  background-color: var(--light);
}

/* État actif : pastille subtile aux couleurs de la marque */
.nav-item.active {
  color: var(--white);
  background-color: var(--secondary-button);
}

/* --- Bouton Espace Client --- */
.btn-client {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-button);
  color: var(--white);
  font-weight: 600;
  font-size: 0.80rem;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(5, 42, 72, 0.15);
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

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

.btn-client svg { 
  transition: transform 0.2s ease; 
}

/* --- Bouton Burger (Invisible sur Bureau) --- */
.menu-toggle {
  display: none;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  z-index: 10002;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--dark);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  pointer-events: none;
}

/* Animation Burger actif */
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================
   5B. MENU MOBILE (Responsive)
   ========================================== */
@media screen and (max-width: 992px) {
  /* Affiche le bouton burger sur mobile et tablette */
  .menu-toggle { 
    display: block !important; 
  }
  
  /* Panneau coulissant latéral pour les liens */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100dvh;
    background-color: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.25rem 2rem 1.25rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    overflow-y: auto;
    gap: 0.75rem;
  }

  .nav-links.is-active { 
    right: 0 !important; 
  }

  /* Forcer les liens du menu mobile à utiliser le même design en pastille */
  .nav-links .nav-item {
    font-size: 1rem;
    width: 100%;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 50px;
  }

  /* État actif spécifique au mobile si nécessaire */
  .nav-links .nav-item.active {
    color: var(--white) !important;
    background-color: var(--secondary) !important;
  }

  .nav-links .btn-client {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 1rem;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1rem;
    opacity: 1;
    visibility: visible;
    display: block;
  }
  
  .dropdown-menu li a {
    font-size: 1rem; /* Remet la bonne taille de texte sur mobile */
    padding: 0.5rem 0;
    color: var(--dark);
  }
}
/* ==========================================
   SECTION HERO (EN-TÊTE)
   ========================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start; /* <-- C'est ici qu'on force l'alignement en haut */
}

/* --- Colonne Gauche --- */
.hero-badge {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.text-highlight {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

/* Soulignement graphique du texte en surbrillance */
.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--secondary);
  opacity: 0.2;
  border-radius: 4px;
  z-index: -1;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.7;
}

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

/* --- Colonne Droite (Visuel & Cartes de rassurance) --- */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(85, 185, 230, 0.1) 0%, rgba(248, 250, 252, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.trust-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(5, 42, 72, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 90%;
  transition: transform 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-5px);
}

.card-top {
  margin-left: 0;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary);
}

.card-bottom {
  margin-left: 10%;
  border-left: 4px solid var(--secondary);
}

.trust-icon {
  font-size: 2rem;
  background-color: var(--light);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.trust-text h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.trust-text p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

/* --- Hero spécifique aux pages Services --- */
.hero-features-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(5, 42, 72, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* ==========================================
   6. CARTES DE SERVICES
   ========================================== */
.margin-bottom-lg { 
  margin-bottom: 2.5rem; 
}

.service-card {
  padding: 2.25rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -4px rgba(236, 153, 72, 0.15);
  border-color: rgba(236, 153, 72, 0.4);
}

.icon-box {
  width: 52px;
  height: 52px;
  background-color: #FFF5EC;
  border: 1px solid rgba(236, 153, 72, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.service-card:hover .icon-box {
  background-color: var(--secondary);
  color: var(--white);
  transform: scale(1.05);
}

.service-title { 
  font-size: 1.25rem; 
  margin-bottom: 0.75rem; 
}
.service-description { 
  font-size: 0.95rem; 
  margin-bottom: 1.75rem; 
  flex-grow: 1; 
}

.service-link {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-link .arrow { 
  transition: transform 0.2s ease; 
}
.service-card:hover .service-link { 
  color: var(--secondary-hover); 
}
.service-card:hover .service-link .arrow { 
  transform: translateX(5px); 
}

/* Styles spécifiques pour la page Tenue de livres */
.service-details-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

.service-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkmark {
    color: var(--primary-color, #f97316);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.service-card-padding {
    padding: 3rem;
    margin-bottom: 3rem;
}

.why-delegate-card {
    background-color: var(--bg-light, #f8fafc);
}

/* ==========================================
   ENCART TRANSPARENCE TARIFAIRE
   ========================================== */
.pricing-transparency-section {
  padding: 2rem 0 4rem 0;
  background-color: var(--bg-color, #f8fafc);
}

.pricing-transparency-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(5, 42, 72, 0.05);
}

.transparency-icon {
  font-size: 2.5rem;
  background: var(--light, #f1f5f9);
  padding: 1rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.transparency-content {
  flex: 1;
}

.transparency-content h3 {
  color: var(--dark, #0A2540);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.transparency-content p {
  color: var(--gray-600, #475569);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.transparency-action {
  flex-shrink: 0;
}


/* ==========================================
   SECTION À PROPOS AVEC PHOTO
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(5, 42, 72, 0.12);
  background-color: var(--light);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
  transition: transform 0.5s ease;
}

.about-image-card:hover .about-img {
  transform: scale(1.03);
}

.about-badge-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.badge-icon {
  font-size: 1.5rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--dark);
}

.badge-text span {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--dark);
  font-weight: 400;
}


/* ==========================================
   7. FORMULAIRES
   ========================================== */
.form-container { 
  max-width: 750px; 
  margin: 0 auto; 
}
.form-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 1.25rem; 
}
.full-width {
  grid-column: span 2;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: start;
}
.contact-grid.contact-grid-asym {
  grid-template-columns: 1fr 1.2fr;
}

.form-group { 
  display: flex; 
  flex-direction: column; 
}
.form-group label { 
  margin-bottom: 0.4rem; 
  font-weight: 600; 
  font-size: 0.95rem; 
}

.form-control {
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-control:focus { 
  outline: none; 
  border-color: var(--primary); 
}

.checkbox-group { 
  display: flex; 
  gap: 1.5rem; 
  flex-wrap: wrap; 
  margin-top: 0.4rem; 
}
.checkbox-label { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  cursor: pointer; 
}


/* ==========================================
   8. PIED DE PAGE (FOOTER)
   ========================================== */
.site-footer {
  background-color: #0A2540;
  color: #E2E8F0;
  padding-top: 4rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-desc {
  line-height: 1.7;
  color: #CBD5E1;
  max-width: 350px;
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a,
.contact-list a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #CBD5E1;
}

.contact-list svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.contact-list a:hover {
  color: var(--white);
}

/* --- Barre du bas --- */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: #94A3B8;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.whc-badge {
  display: flex;
  align-items: center;
  line-height: 0;
}

.whc-badge img {
  height: 34px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.whc-badge:hover img {
  opacity: 1;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: var(--white);
}

/* --- Styles pour les certifications dans le footer --- */
.footer-certifications {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-certifications-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-certifications-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 15px;
}

.footer-certifications-grid img {
  height: 160px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-certifications-grid img:hover {
  opacity: 1;
}

/* ==========================================
   9. RESPONSIVE INTÉGRÉ AUX COMPOSANTS
   ========================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .trust-card {
    width: 100%;
    margin-left: 0 !important;
  }

  .hero-visual {
    min-height: auto;
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .about-img {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .pricing-transparency-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  
  .transparency-action {
    width: 100%;
  }
  
  .transparency-action a {
    display: block;
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-right {
    justify-content: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --- Nouveaux styles de section --- */
.section-content-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.section-title-small {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2rem;
}

.why-delegate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.section-text {
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

.cta-section {
  text-align: center;
  margin-top: 3.5rem;
}

.cta-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

/* Responsive pour la grille "Pourquoi déléguer" */
@media (max-width: 768px) {
  .why-delegate-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Ajustement unifié pour les cartes de services (style index) --- */
.card .service-icon-box {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.card .card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.card .card-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* --- Présentation épurée des pages de services --- */
.service-content-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(5, 42, 72, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 2rem;
}

.service-content-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.service-content-desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.service-page-cta {
  text-align: center;
  margin-top: 3.5rem;
}

.service-page-cta h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.service-page-cta p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* --- Style pour la mention de forfaits sur mesure --- */
.service-pricing-note {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

/* --- Ajustements finaux --- */
.mb-sm { margin-bottom: 1rem; }
.mb-none { margin-bottom: 0; }

/* --- Menu déroulant (Dropdown) --- */
.nav-item-dropdown {
  position: relative;
}

/* Cache le menu par défaut et gère l'animation fluide */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  min-width: 260px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(5, 42, 72, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
  list-style: none;
}

/* Affichage au survol de l'élément parent */
.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Style des liens du menu déroulant */
.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--dark);
  font-size: 0.80rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: var(--light);
  color: var(--primary);
}

/* --- Grille pour la section "À propos / Mon parcours" en 2 colonnes --- */
.about-grid-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-image-wrapper {
  width: 100%;
}

.about-profile-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(5, 42, 72, 0.08);
}

/* Version mobile : passe en une seule colonne */
@media (max-width: 992px) {
  .about-grid-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-image-wrapper {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* --- NOUVEAU STYLE DE SECTION HEADER (Moderne & Premium) --- */
.section-header-modern {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.section-badge-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(245, 158, 11, 0.12); /* Douce teinte orange/or */
  color: #d97706;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.section-title-modern {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark, #0f172a);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle-modern {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Rend le lien actif du sous-menu orange */
.dropdown-menu a.active {
    color: var(--secondary) !important;
    font-weight: 600;
}

/* Rend uniquement le texte des liens actifs du footer en orange */
.site-footer .footer-links a.active,
.site-footer .contact-list a.active {
    color: var(--secondary) !important;
    font-weight: 600;
}