/*
 * NexaCore – Responsive Styles
 * Built with Bootstrap v5.3.8 Breakpoints
 * Breakpoints : xs < 576px, sm ≥ 576px, md ≥ 768px, lg ≥ 992px, xl ≥ 1200px, xxl ≥ 1400px
 */

/* ============================================================
   GLOBAL & TYPOGRAPHY
   ============================================================ */

/* xs – extra small devices (portrait phones, < 576px) */
@media (max-width: 575.98px) {
  body {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  h4 {
    font-size: 1.15rem;
  }

  .section-padding {
    padding: 48px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .divider-accent {
    margin-top: 12px;
    margin-bottom: 20px;
  }

  .btn-accent,
  .btn-outline-accent,
  .btn-white {
    width: 100%;
    justify-content: center;
  }
}

/* sm – small devices (landscape phones, ≥ 576px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .section-padding {
    padding: 56px 0;
  }

  .btn-accent,
  .btn-outline-accent,
  .btn-white {
    width: auto;
  }
}

/* md – medium devices (tablets, ≥ 768px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section-padding {
    padding: 72px 0;
  }
}

/* lg – large devices (desktops, ≥ 992px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .section-padding {
    padding: 88px 0;
  }
}

/* xl – extra large devices (large desktops, ≥ 1200px) */
@media (min-width: 1200px) {
  .section-padding {
    padding: 100px 0;
  }
}

/* ============================================================
   TOP BAR
   ============================================================ */

@media (max-width: 767.98px) {
  .top-bar {
    display: none; /* Masqué sur mobiles */
  }
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

/* Collapse behaviour */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  .navbar-nav .nav-link {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--border);
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: var(--accent-light);
  }

  .header-cta {
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
  }

  .header-cta .btn-accent {
    display: block;
    width: 100%;
  }

  .dropdown-menu {
    position: static !important;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    background: transparent;
  }

  .dropdown-item {
    padding-left: 30px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.4rem;
  }
}

/* ============================================================
   SLIDER / HERO
   ============================================================ */

@media (max-width: 991.98px) {
  .hero-slider .carousel-item {
    min-height: 70vh;
  }

  .hero-geo {
    display: none; /* Cercle décoratif retiré */
  }

  .hero-content {
    padding: 60px 0;
    text-align: center;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-badge {
    margin-top: 28px;
    justify-content: center;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .carousel-control-prev {
    left: 12px;
  }
  .carousel-control-next {
    right: 12px;
  }
}

@media (max-width: 767.98px) {
  .hero-slider .carousel-item {
    min-height: 100svh; /* Plein écran mobile */
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-tag {
    font-size: 0.7rem;
    gap: 8px;
  }
}

@media (max-width: 575.98px) {
  .hero-content {
    padding: 48px 0;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }
}

/* ============================================================
   FEATURES (card boxes)
   ============================================================ */

@media (max-width: 767.98px) {
  .feature-card {
    margin-bottom: 24px;
  }

  .feature-card:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .feature-card {
    padding: 24px 20px;
  }

  .feature-card__title {
    font-size: 1.1rem;
  }
}

/* ============================================================
   SERVICE
   ============================================================ */

@media (max-width: 767.98px) {
  .service-card {
    margin-bottom: 24px;
  }

  .service-card:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .service-card {
    padding: 28px 20px;
  }

  .service-card__title {
    font-size: 1.15rem;
  }

  .service-card__text {
    font-size: 0.9rem;
  }
}

/* ============================================================
   FACTS (compteur numérique)
   ============================================================ */

@media (max-width: 991.98px) {
  .fact-item::after {
    display: none; /* Retrait du séparateur vertical */
  }

  .fact-item {
    margin-bottom: 28px;
  }

  .fact-item:last-child {
    margin-bottom: 0;
  }

  .fact-number {
    font-size: 2.8rem;
  }
}

@media (max-width: 575.98px) {
  .fact-number {
    font-size: 2.2rem;
  }

  .fact-number span {
    font-size: 1.4rem;
  }

  .fact-label {
    font-size: 0.8rem;
  }
}

/* ============================================================
   INTRO AREA (à propos)
   ============================================================ */

@media (max-width: 991.98px) {
  .intro-image-wrap {
    margin-bottom: 40px;
  }

  .intro-image-wrap img {
    height: 400px;
  }

  .intro-badge {
    bottom: 20px;
    left: 20px;
    padding: 16px 20px;
  }

  .intro-badge__number {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .intro-image-wrap {
    margin-bottom: 32px;
  }

  .intro-image-wrap img {
    height: 300px;
  }

  .intro-check-list {
    gap: 10px;
  }

  .intro-check-item {
    font-size: 0.92rem;
  }
}

@media (max-width: 575.98px) {
  .intro-image-wrap img {
    height: 260px;
  }

  .intro-badge {
    bottom: 12px;
    left: 12px;
    padding: 12px 16px;
  }

  .intro-badge__number {
    font-size: 1.6rem;
  }
}

/* ============================================================
   CALL TO ACTION
   ============================================================ */

@media (max-width: 767.98px) {
  .cta-section {
    padding: 60px 0;
  }

  .cta-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cta-actions .btn-accent,
  .cta-actions .btn-white {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .cta-title {
    font-size: 1.8rem;
  }
}

/* ============================================================
   CHART (vérifier capacité)
   ============================================================ */

@media (max-width: 991.98px) {
  .chart-section .row {
    flex-direction: column-reverse; /* Image/texte en premier sur mobile */
  }
}

@media (max-width: 767.98px) {
  .chart-wrap {
    padding: 24px;
    margin-bottom: 32px;
  }

  .chart-legend {
    gap: 12px;
  }
}

/* ============================================================
   CONTENT AREA (onglets, objectifs, pourquoi nous choisir)
   ============================================================ */

@media (max-width: 991.98px) {
  .content-tabs .nav-tabs {
    gap: 2px;
  }

  .content-tabs .nav-link {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .content-image-side img {
    height: 300px;
  }
}

@media (max-width: 767.98px) {
  .content-area .row > div:last-child {
    margin-top: 40px;
  }

  .content-image-side img {
    height: 250px;
  }
}

/* ============================================================
   CLIENT / TÉMOIGNAGES
   ============================================================ */

@media (max-width: 767.98px) {
  .client-logo {
    padding: 12px;
  }

  .client-logo__text {
    font-size: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .clients-title {
    font-size: 0.75rem;
    margin-bottom: 24px;
  }
}

/* ============================================================
   LATEST NEWS
   ============================================================ */

@media (max-width: 991.98px) {
  .news-card {
    margin-bottom: 24px;
  }
}

@media (max-width: 767.98px) {
  .news-card__body {
    padding: 20px 20px 24px;
  }

  .news-card__title {
    font-size: 1.05rem;
  }
}

@media (max-width: 575.98px) {
  .news-card__img {
    height: 180px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

@media (max-width: 991.98px) {
  .footer .col-lg-3,
  .footer .col-lg-2 {
    margin-bottom: 40px;
  }

  .footer .col-lg-3:last-child,
  .footer .col-lg-2:last-child {
    margin-bottom: 0;
  }

  .footer-brand {
    font-size: 1.6rem;
  }
}

@media (max-width: 767.98px) {
  .footer-desc {
    max-width: 100%;
  }

  .footer-heading {
    margin-bottom: 16px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-divider {
    margin-top: 40px;
  }
}

@media (max-width: 575.98px) {
  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 8px;
  }
}

/* ============================================================
   SUB PAGES (page d'entête)
   ============================================================ */

@media (max-width: 767.98px) {
  .page-hero {
    padding: 60px 0 50px;
  }

  .page-hero__title {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .page-hero {
    padding: 48px 0 40px;
  }

  .page-hero__title {
    font-size: 1.7rem;
  }
}

/* ============================================================
   PRICING TABLE
   ============================================================ */

@media (max-width: 991.98px) {
  .pricing-card {
    margin-bottom: 24px;
    transform: none !important;
  }

  .pricing-card.featured {
    transform: none !important;
  }

  .pricing-card:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-amount {
    font-size: 3rem;
  }
}

/* ============================================================
   QUOTE AREA
   ============================================================ */

@media (max-width: 767.98px) {
  .quote-icon {
    font-size: 3rem;
  }

  blockquote.site-quote {
    font-size: 1.4rem;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .quote-section {
    padding: 60px 0;
  }

  blockquote.site-quote {
    font-size: 1.2rem;
  }

  .quote-author {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================================
   CONTACT US
   ============================================================ */

@media (max-width: 991.98px) {
  .contact-form-card {
    margin-top: 40px;
  }
}

@media (max-width: 767.98px) {
  .contact-info-card {
    flex-direction: column;
    gap: 12px;
  }

  .contact-form-card {
    padding: 32px 24px;
  }

  .contact-form-card .row {
    row-gap: 16px;
  }
}

@media (max-width: 575.98px) {
  .contact-info-card {
    padding: 24px 20px;
  }
}

/* ============================================================
   NEWS LISTING (liste des articles)
   ============================================================ */

@media (max-width: 991.98px) {
  .news-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-list-img {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .news-list-img {
    height: 160px;
  }

  .news-list-title {
    font-size: 1.05rem;
  }
}

/* ============================================================
   NEWS SINGLE
   ============================================================ */

@media (max-width: 991.98px) {
  .news-single__hero-img {
    height: 300px;
    margin-bottom: 28px;
  }

  .author-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .news-single__hero-img {
    height: 250px;
  }

  .post-tags {
    gap: 4px;
  }

  .post-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}

/* ============================================================
   SIDEBAR
   ============================================================ */

@media (max-width: 991.98px) {
  .sidebar {
    margin-top: 48px;
  }
}

@media (max-width: 767.98px) {
  .sidebar-widget {
    padding: 24px;
  }

  .sidebar-recent-img {
    width: 56px;
    height: 56px;
  }
}

/* ============================================================
   ERROR PAGE & 404
   ============================================================ */

@media (max-width: 767.98px) {
  .error-page {
    min-height: 60vh;
  }

  .page-404__number {
    -webkit-text-stroke: 1px rgba(212, 148, 58, 0.35);
    font-size: 6rem;
  }
}

@media (max-width: 575.98px) {
  .error-illustration {
    max-width: 280px;
  }

  .error-title {
    font-size: 1.6rem;
  }

  .page-404__number {
    font-size: 4.5rem;
  }

  .page-404__title {
    font-size: 1.5rem;
  }
}

/* ============================================================
   FAQ (ajout hors TOC mais présent dans le template)
   ============================================================ */

@media (max-width: 767.98px) {
  .faq .accordion-button {
    font-size: 0.95rem;
    padding: 12px 16px;
  }

  .faq .accordion-body {
    font-size: 0.9rem;
    padding: 12px 16px;
  }
}

/* ============================================================
   UTILITAIRES RESPONSIVE
   ============================================================ */

/* Afficher / masquer selon breakpoint */
.d-xs-none {
  @media (max-width: 575.98px) {
    display: none !important;
  }
}
.d-sm-none {
  @media (max-width: 767.98px) {
    display: none !important;
  }
}
/* etc. - les classes Bootstrap sont déjà incluses, ces exemples ne sont pas nécessaires */

/* Espacements spécifiques */
@media (max-width: 767.98px) {
  .mb-mobile-3 {
    margin-bottom: 1rem !important;
  }
  .mb-mobile-4 {
    margin-bottom: 1.5rem !important;
  }
}

/* Fin du responsive.css */
