/* ============================================================
   WELL CONSEIL — responsive.css
   Correctifs mobile complets (à inclure après style.css et services.css)
   ============================================================ */

/* =========================================================
   GLOBAL — SECTIONS & TYPOGRAPHIE
   ========================================================= */
@media (max-width: 767px) {
  .section { padding: 72px 0; }
  .titre-section { font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.25; margin-bottom: 14px; }
  .badge-section { font-size: 10px; padding: 5px 16px; margin-bottom: 18px; }
  body { overflow-x: hidden; }
  .container { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .titre-section { font-size: 1.5rem; }
}


/* =========================================================
   NAVBAR MOBILE
   ========================================================= */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--gris2);
    padding: 20px 24px 28px;
    margin-top: 6px;
  }
  .nav-link { padding: 12px 14px !important; }
  .btn-nav-contact { margin-top: 16px; display: block; text-align: center; border-radius: 50px !important; }
  .navbar-nav .dropdown-menu {
    background: rgba(36, 36, 84, 0.04) !important;
    border-radius: 8px !important;
    border: 1px solid var(--gris2) !important;
    box-shadow: none !important;
    padding: 8px 0 8px 14px !important;
    margin-top: 6px;
  }
  .navbar-nav .dropdown-item { padding: 10px 18px; border-radius: 6px; }
}


/* =========================================================
   HERO PRINCIPAL — FIX IMAGE + PADDING
   ========================================================= */
@media (max-width: 767px) {

  /* Hauteur fixe pour que l'image soit toujours visible */
  .hero                { min-height: 520px; height: auto; }
  .carousel            { height: 520px; }
  .carousel-inner      { height: 520px; }
  .carousel-item       { height: 520px; }

  .carousel-item img {
    height: 520px;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  /* Overlay légèrement plus sombre pour la lisibilité du texte */
  .carousel-overlay {
    background: linear-gradient(160deg,
      rgba(13, 31, 53, 0.82) 0%,
      rgba(13, 31, 53, 0.58) 55%,
      rgba(13, 31, 53, 0.28) 100%);
  }

  .hero-contenu {
    padding: 32px 0 64px;   /* bas généreux — évite overlap avec les indicators */
    align-items: flex-start;
  }

  .hero-titre      { font-size: clamp(1.75rem, 7vw, 2.4rem); margin-bottom: 14px; }
  .hero-sous-titre { font-size: 14px; max-width: 100%; margin-bottom: 24px; line-height: 1.7; }
  .hero-stats      { gap: 24px; margin-top: 24px; }
  .stat-nombre     { font-size: 1.9rem; }
  .stat-label      { font-size: 10px; }
  .hero-tags       { flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; margin-bottom: 20px; }
  .hero-tag        { font-size: 11px; padding: 5px 14px; }

  /* Boutons hero : forcer row — sélecteurs exacts du HTML */
  .hero-contenu .d-flex.flex-wrap.gap-3 {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    display: flex !important;
  }
  .hero-contenu .d-flex.flex-wrap.gap-3 .btn-principal,
  .hero-contenu .d-flex.flex-wrap.gap-3 .btn-outline,
  .hero-contenu .d-flex.flex-wrap.gap-3 a {
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-self: center !important;
  }

  /* Masquer les flèches carousel */
  .carousel-control-prev,
  .carousel-control-next { display: none !important; }

  /* Indicators : isolés du flux — ne doivent jamais déplacer les boutons */
  .carousel-indicators {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 15;
    pointer-events: auto;
  }
  .carousel-indicators [data-bs-target] {
    margin: 0 4px !important;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .hero, .carousel, .carousel-inner, .carousel-item { height: 600px; }
  .carousel-item img { height: 600px; }
  .hero-titre { font-size: 1.5rem; }
  .hero-contenu { padding: 28px 0 80px; }

  /* Indicators bien en bas */
  .carousel-indicators {
    bottom: 24px !important;
  }

  /* Fix boutons côte à côte < 480px */
  .hero-contenu .d-flex.flex-wrap.gap-3 {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    display: flex !important;
    gap: 10px !important;
  }
  .hero-contenu .d-flex.flex-wrap.gap-3 > * {
    width: auto !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    min-width: 0 !important;
  }
  .btn-principal { width: auto !important; }
  .btn-outline   { width: auto !important; }
}


/* =========================================================
   HERO PAGES DE SERVICE (.page-hero)
   ========================================================= */
@media (max-width: 767px) {
  .page-hero    { padding: 60px 0 48px; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 16px; }
  .page-hero p  { font-size: 14px; max-width: 100%; line-height: 1.75; }
}
@media (max-width: 480px) {
  .page-hero    { padding: 48px 0 36px; }
  .page-hero h1 { font-size: 1.35rem; }
}


/* =========================================================
   HERO SRV (.srv-hero)
   ========================================================= */
@media (max-width: 767px) {
  .srv-hero        { padding: 72px 0 56px; }
  .srv-hero__title { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 18px; }
  .srv-hero__desc  { font-size: 14px; line-height: 1.75; margin-bottom: 20px; }
  .srv-hero__pills { flex-direction: row !important; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
  .srv-hero__pill  { font-size: 12px; padding: 8px 18px; }
}


/* =========================================================
   BANDEAU CONFIANCE
   ========================================================= */
@media (max-width: 767px) {
  .trust-band { padding: 32px 0; }
  .trust-band-label { display: none; }
  .trust-logo-item { padding: 0 24px; }
  .trust-logo-item img { height: 50px; max-width: 110px; }
}


/* =========================================================
   À PROPOS — CADRE PHOTO
   ========================================================= */
@media (max-width: 767px) {
  .about-img-cadre,
  .about-img-cadre img,
  .about-img-cadre::before { height: 340px; }
  .about-img-cadre { margin: 0 auto 32px; max-width: 300px; }
}
@media (max-width: 480px) {
  .about-img-cadre,
  .about-img-cadre img,
  .about-img-cadre::before { height: 280px; }
}


/* =========================================================
   MANIFESTE + GRILLE ALIGN
   ========================================================= */
@media (max-width: 767px) {
  .manifeste-section { padding: 72px 0; }
  .manifeste-quote   { font-size: clamp(1.1rem, 4.5vw, 1.45rem); line-height: 1.6; margin-bottom: 20px; }
  .manifeste-sous    { font-size: 14px; }
  .align-grid        { grid-template-columns: 1fr 1fr; gap: 16px; }
  .align-card        { padding: 32px 20px; }
  .align-lettre      { font-size: 3rem; margin-bottom: 10px; }
  .align-desc        { font-size: 12px; line-height: 1.6; }
}
@media (max-width: 480px) {
  .align-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   SERVICES CARDS
   ========================================================= */
@media (max-width: 767px) {
  .card-service    { padding: 32px 24px; }
  .icone-service   { width: 48px; height: 48px; font-size: 20px; margin-bottom: 20px; }
  .card-service h4 { font-size: 1.15rem; margin-bottom: 12px; }
  .card-service p  { line-height: 1.7; }
  .card-service .btn-principal { width: auto; justify-content: center; margin-top: 8px; }
}


/* =========================================================
   MVV — MISSION VISION VALEURS
   ========================================================= */
@media (max-width: 767px) {
  .mvv-card    { padding: 36px 28px; }
  .mvv-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
  .mvv-card p  { line-height: 1.75; }
}


/* =========================================================
   SECTION SALMA
   ========================================================= */
@media (max-width: 767px) {
  .salma-photo-wrap       { max-width: 300px; margin: 0 auto 32px; }
  .salma-badge-icf        { width: 64px; height: 64px; bottom: 12px; right: 12px; }
  .expertise-pill         { font-size: 12px; padding: 7px 16px; margin: 4px; }
  .stat-expertise         { padding: 22px 14px; }
  .stat-expertise .nombre { font-size: 2rem; }
  .stat-expertise .label  { font-size: 10px; margin-top: 4px; }
}
@media (max-width: 480px) { .salma-badge-icf { display: none; } }


/* =========================================================
   ÉTAPES
   ========================================================= */
@media (max-width: 767px) {
  .etape            { gap: 20px; margin-bottom: 32px; }
  .etape-num        { font-size: 2.4rem; min-width: 44px; }
  .etape-contenu h4 { font-size: 1rem; margin-bottom: 8px; }
  .etape-contenu p  { font-size: 13px; line-height: 1.7; }
}


/* =========================================================
   CONTACT
   ========================================================= */
@media (max-width: 899px) {
  .c-grid { grid-template-columns: 1fr; padding: 0 24px; gap: 28px; }
  .c-card:first-child, .c-card:last-child { padding: 40px 32px; }
}
@media (max-width: 499px) {
  .c-row        { grid-template-columns: 1fr; gap: 20px; }
  .c-card-titre { font-size: 1.8rem; }
  .c-form-titre { font-size: 1.6rem; }
  .c-btn        { width: 100%; }
}


/* =========================================================
   FOOTER
   ========================================================= */
@media (max-width: 767px) {
  footer               { padding: 56px 0 28px; }
  .footer-logo         { text-align: center; margin-bottom: 16px; }
  .footer-logo img     { height: 64px; }
  .footer-desc         { max-width: 100%; text-align: center; margin: 0 auto 16px; line-height: 1.7; }
  .footer-titre        { margin-bottom: 14px; }
  .footer-lien         { font-size: 13px; margin-bottom: 10px; }
  .footer-icf          { padding: 12px 16px; }
  .footer-icf-badge    { width: 32px; height: 32px; font-size: 10px; }
  .footer-bottom       { font-size: 11px; padding-top: 20px; margin-top: 36px; }
}
@media (max-width: 480px) { footer .row { gap: 24px !important; } }


/* =========================================================
   SERVICES — STATS GRILLE
   ========================================================= */
@media (max-width: 575px) {
  .srv-stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .srv-stat__nb   { font-size: 2rem; }
  .srv-stat-dark, .srv-stat-light { padding: 28px 20px; border-radius: 12px; }
}
@media (max-width: 360px) { .srv-stats-grid { grid-template-columns: 1fr; } }


/* =========================================================
   SERVICES — BLOCS DIVERS
   ========================================================= */
@media (max-width: 767px) {
  .srv-benefices         { padding: 36px 28px; border-radius: 16px; }
  .srv-benefices__title  { font-size: 1.2rem; margin-bottom: 24px; }
  .srv-benefice-item     { gap: 16px; padding-bottom: 4px; }
  .srv-quote             { padding: 40px 28px; }
  .srv-quote__text       { font-size: 1.05rem; line-height: 1.8; margin-bottom: 28px; }
  .srv-cible-card,
  .srv-cible-dark        { padding: 32px 24px; border-radius: 14px; }
  .srv-cible-card p,
  .srv-cible-dark p      { line-height: 1.75; }
  .srv-methode-step      { padding: 28px 16px; }
  .srv-methode-num       { font-size: 2.8rem; margin-bottom: 14px; }
  .srv-refs              { padding: 60px 0; }
  .srv-ref-card          { padding: 32px 24px; }
  .card-service__sep     { padding-top: 18px; margin-top: 20px; }
  .card-service__duration{ font-size: 12px; margin-top: 18px; }
  .valeur-item           { font-size: 13px; padding: 6px 0; }

  /* Espacement entre blocs de programme */
  .srv-programme-item    { padding: 16px 20px; }
  .srv-ia-item           { padding: 16px 20px; }
}


/* =========================================================
   SERVICES — CTA
   ========================================================= */
@media (max-width: 767px) {
  .srv-cta            { padding: 0 8px; }
  .srv-cta .d-flex    { flex-direction: row !important; flex-wrap: wrap; justify-content: center; gap: 12px !important; }
  .srv-cta .btn-principal { width: auto; justify-content: center; }
}


/* =========================================================
   BOUTONS — empilement global < 480px
   ========================================================= */
@media (max-width: 480px) {
  .d-flex.gap-3.flex-wrap { flex-direction: row !important; flex-wrap: wrap; gap: 12px !important; }
  .d-flex.gap-3.flex-wrap .btn-principal,
  .d-flex.gap-3.flex-wrap .btn-outline,
  .d-flex.gap-3.flex-wrap .btn-linkedin { width: auto; justify-content: center; }
}


/* =========================================================
   BOOTSTRAP ROWS — gaps généreux
   ========================================================= */
@media (max-width: 767px) {
  .row.g-5 { --bs-gutter-y: 2.5rem;  --bs-gutter-x: 1.5rem; }
  .row.g-4 { --bs-gutter-y: 2rem;    --bs-gutter-x: 1.25rem; }
  .row.g-3 { --bs-gutter-y: 1.5rem;  --bs-gutter-x: 1rem; }
}


/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
@media (max-width: 480px) {
  .whatsapp-float { bottom: 24px; right: 20px; width: 52px; height: 52px; font-size: 22px; }
}