/*--------------------------------------------------------------
  OPUX360 — Responsive
  Tous les media queries extraits de l'ensemble des fichiers CSS,
  organisés par breakpoint du plus large au plus étroit.
  Charger EN DERNIER, après opux360-components.css
--------------------------------------------------------------*/

/* ============================================================
   DESKTOP (min-width: 992px) — overrides spécifiques desktop
   ============================================================ */
@media (min-width: 992px) {
  .cs_site_branding img {
    width: auto;
    height: 4.125rem; /* 66px */
    max-width: 11.25rem; /* 180px */
  }
}

/* ============================================================
   max-width: 1399px
   ============================================================ */
@media (max-width: 1399px) {
  /* Dark section — content column alignment */
  .row.cs_heading_bg .col-xl-6.order-lg-1,
  .row.cs_heading_bg .col-lg-7.order-lg-1 {
    padding-left: calc((100vw - min(1140px, 100vw - 3rem)) / 2 + 12px);
  }
}

/* ============================================================
   max-width: 1199px
   ============================================================ */
@media (max-width: 1199px) {
  /* Cards section */
  .cs_card.cs_style_1 {
    padding: 50px 30px;
  }

  .cs_card.cs_style_1 .cs_section_title.cs_fs_50 {
    font-size: 38px !important;
  }

  /* Pricing table */
  .cs_pricing_table_wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .cs_pricing_table.cs_style_1.active {
    transform: scale(1.02);
  }

  .cs_pricing_table.cs_style_1.active:hover {
    transform: scale(1.03);
  }

  /* Dark section layout */
  .cs_card.cs_style_1 .row.cs_heading_bg {
    height: 80vh;
  }

  .row.cs_heading_bg .col-xl-6.order-lg-1,
  .row.cs_heading_bg .col-lg-7.order-lg-1 {
    padding-left: calc((100vw - min(960px, 100vw - 3rem)) / 2 + 12px);
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .row.cs_heading_bg .col-xl-5,
  .row.cs_heading_bg .col-lg-5 {
    width: 45%;
    max-width: 45%;
  }
}

/* ============================================================
   max-width: 991px
   ============================================================ */
@media (max-width: 991px) {
  /* --- Variables --- */
  :root {
    --space-lg: 3rem;
    --space-xl: 5rem;
  }

  /* --- Header --- */
  .cs_menu_toggle {
    display: flex;
    top: 0 !important;
    right: 0 !important;
    z-index: 1005;
  }

  /* Le header reste cliquable au-dessus du menu ouvert */
  .cs_main_header_in {
    position: relative;
    z-index: 1002;
  }

  /* Menu PLEIN ÉCRAN */
  .cs_main_header_center {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: var(--premium-white, #fafaf8);
    padding: 5rem 2rem 2rem;
    box-shadow: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .cs_main_header_center.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex !important;
  }

  /* Navigation wrapper */
  .cs_nav {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    width: 100%;
    max-width: 360px;
    padding: 0;
  }

  /* Navigation list */
  .cs_nav_list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 320px;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .cs_nav_list > li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid var(--premium-gray-100, #e8e6e1);
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
    transform: none !important;
    text-align: center;
  }

  .cs_nav_list > li:first-child {
    border-top: 1px solid var(--premium-gray-100, #e8e6e1);
  }

  .cs_nav_list > li > a {
    display: block !important;
    width: 100% !important;
    padding: 1.1rem 0 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    color: var(--premium-gray-600, #5c5a54) !important;
    text-decoration: none !important;
    position: static !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: color 0.3s ease !important;
  }

  .cs_nav_list > li > a:hover {
    color: var(--premium-primary, #0d1b2a) !important;
  }

  /* Trial button in mobile menu */
  .cs_header_trial {
    display: flex !important;
    width: 100%;
    max-width: 320px;
    justify-content: center;
    margin: 0 !important;
    padding: 1rem 2rem;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
  }

  /* CTA button in mobile menu */
  .cs_header_cta {
    display: flex !important;
    width: 100%;
    max-width: 320px;
    justify-content: center;
    margin: 0 !important;
    padding: 1rem 2rem;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
    margin-top: 1rem;
  }

  /* Language dropdown in mobile menu */
  .lang-dropdown {
    display: flex !important;
    margin: 0 !important;
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
  }

  .lang-dropdown-toggle {
    width: auto;
    justify-content: center;
  }

  .lang-dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-10px);
  }

  .lang-dropdown.open .lang-dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }

  .lang-switch-wrapper {
    margin-left: 0;
    margin-top: 20px;
    justify-content: center;
  }

  /* Body lock when menu open */
  body.cs_menu_open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  /* --- Hero --- */
  .cs_hero.cs_style_1 {
    padding: 130px 0 60px;
  }

  .cs_hero_title {
    text-align: center;
  }

  .cs_hero_subtitle {
    text-align: center;
  }

  .cs_btn_group {
    justify-content: center;
  }

  .cs_hero_thumbnail {
    margin-top: 30px;
    text-align: center;
  }

  .cs_hero_thumbnail img {
    max-width: 80%;
    height: auto;
  }

  /* --- Counter --- */
  .cs_funfact.cs_style_1 {
    margin-bottom: 30px;
  }

  .cs_funfact_number.cs_fs_68 {
    font-size: 48px !important;
  }

  .cs_funfact h3.cs_fs_29 {
    font-size: 22px !important;
  }

  /* --- Features --- */
  .cs_iconbox.cs_style_1 {
    margin-bottom: 30px;
  }

  .cs_section_title.cs_fs_50 {
    font-size: 36px !important;
  }

  .cs_section_text.cs_fs_21 {
    font-size: 18px !important;
  }

  /* Feature cards */
  .cs_card.cs_style_1 {
    padding: 40px 25px;
    margin-bottom: 30px;
  }

  .cs_card.cs_style_1 .cs_card_thumbnail {
    margin-bottom: 30px;
  }

  .cs_card.cs_style_1 .cs_section_title.cs_fs_50 {
    font-size: 32px !important;
    text-align: center;
  }

  .cs_card.cs_style_1 .cs_section_text {
    text-align: center;
  }

  .cs_card.cs_style_1 .cs_list {
    padding-left: 0;
  }

  /* Card decorative frames hidden */
  .cs_card_thumbnail::before,
  .cs_card_thumbnail::after {
    display: none;
  }

  .cs_card_content {
    padding-left: 0;
    padding-top: 2rem;
  }

  .cs_list.cs_style_1 li {
    padding: 1rem 0;
  }

  .cs_list_icon {
    min-width: 40px;
    height: 40px;
  }

  /* Dark section layout — mobile stacked */
  .cs_card.cs_style_1 .row.cs_heading_bg {
    min-height: auto;
    max-height: none;
    height: auto;
    flex-direction: column;
    display: flex;
  }

  /* Image en haut, pleine largeur */
  .row.cs_heading_bg .col-xl-5.order-lg-2,
  .row.cs_heading_bg .col-lg-5.order-lg-2 {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 50vh;
    max-height: 400px;
    order: 1;
  }

  .row.cs_heading_bg .cs_card_thumbnail {
    position: relative !important;
    height: 100% !important;
  }

  .row.cs_heading_bg .cs_card_thumbnail::before {
    background: linear-gradient(
      180deg,
      transparent 60%,
      var(--premium-primary, #0d1b2a) 100%
    ) !important;
  }

  .row.cs_heading_bg .cs_card_thumbnail::after {
    display: none !important;
  }

  /* Contenu en bas, aligné avec container */
  .row.cs_heading_bg .col-xl-6.order-lg-1,
  .row.cs_heading_bg .col-lg-7.order-lg-1 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2.5rem calc((100vw - min(720px, 100vw - 3rem)) / 2 + 12px);
    order: 2;
  }

  /* --- Services --- */
  .cs_iconbox.cs_style_2 {
    padding: 35px 20px;
    text-align: center;
  }

  .cs_iconbox.cs_style_2 .cs_iconbox_icon {
    margin-left: auto;
    margin-right: auto;
  }

  /* --- Pricing --- */
  .cs_pricing_table.cs_style_1 {
    padding: 35px 25px;
  }

  .cs_pricing_table.cs_style_1 h2.cs_fs_32 {
    font-size: 28px !important;
  }

  .cs_pricing_table.cs_style_1.active {
    transform: scale(1);
    margin: 1rem 0;
  }

  .cs_pricing_table.cs_style_1.active:hover {
    transform: scale(1.01);
  }

  .cs_pricing_table.cs_style_1.active .cs_pricing_head::before {
    top: 15px;
    right: 15px;
    font-size: 0.5625rem;
  }

  /* --- FAQ --- */
  .cs_accordian {
    padding: 25px 20px;
  }

  .cs_accordian_head.cs_fs_21 {
    font-size: 18px !important;
    padding-right: 40px;
  }

  /* --- CTA --- */
  .cs_cta.cs_style_1 {
    padding: var(--space-md);
  }

  /* --- Demo form --- */
  .cs_contact_form {
    padding: 40px 30px;
  }

  .cs_contact_form h2 {
    font-size: 32px !important;
  }

  /* --- Footer --- */
  .cs_footer_main::before,
  .cs_footer_main::after {
    display: none;
  }

  .cs_footer_widget_title {
    margin-bottom: 1.25rem;
  }

  .cs_footer_medu li {
    margin-bottom: 0.75rem;
  }

  .cs_footer.cs_style_1 .cs_footer_widget {
    margin-bottom: 40px;
    text-align: center;
  }

  .cs_footer.cs_style_1 .cs_footer_logo {
    margin: 0 auto 20px;
  }

  .cs_footer.cs_style_1 .cs_footer_widget ul {
    padding-left: 0;
  }

  /* --- Buttons --- */
  .cs_btn.cs_style_1 {
    padding: 16px 32px;
    font-size: 13px;
  }

  /* --- Spacing --- */
  .cs_height_130 {
    height: 80px;
  }

  .cs_height_120 {
    height: 70px;
  }

  .cs_height_lg_80 {
    height: 60px;
  }

  .cs_gap_y_40 {
    row-gap: 30px;
  }

  /* Images */
  .cs_card_thumbnail img,
  .cs_hero_thumbnail img {
    width: 100%;
    height: auto;
  }

  /* Landscape mode */
  .cs_main_header_in {
    padding: 1rem 0;
    gap: 12px;
  }
}

/* Tablette uniquement (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .cs_site_branding img {
    width: auto;
    height: 2.625rem;
    max-width: 9.375rem;
  }
}

/* ============================================================
   max-width: 767px
   ============================================================ */
@media (max-width: 767px) {
  /* --- Base --- */
  body, html {
    font-size: 16px;
  }

  /* --- Header --- */
  .cs_site_branding img {
    height: 38px;
    max-width: 140px;
  }

  .cs_main_header_in {
    padding: 0.875rem 0;
  }

  /* --- Hero --- */
  .cs_hero.cs_style_1 {
    padding: 110px 0 50px;
  }

  /* --- Features Iconboxes --- */
  .cs_iconbox.cs_style_1,
  .cs_pricing_card.cs_style_1 {
    padding: var(--space-sm);
  }

  /* Dark section — image */
  .row.cs_heading_bg .col-xl-5.order-lg-2,
  .row.cs_heading_bg .col-lg-5.order-lg-2 {
    height: 40vh;
    max-height: 320px;
  }

  .row.cs_heading_bg .col-xl-6.order-lg-1,
  .row.cs_heading_bg .col-lg-7.order-lg-1 {
    padding: 2rem 1.5rem;
  }

  /* --- Pricing --- */
  .cs_pricing_table_wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
  }

  /* --- Footer --- */
  .cs_footer_bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .cs_social_links.cs_style_1 {
    justify-content: center;
  }

  .cs_footer_widget.cs_text_widget p {
    max-width: 100%;
  }

  /* --- Text alignment --- */
  .cs_section_heading.cs_style_1:not(.text-center) {
    text-align: center;
  }

  .cs_section_heading.cs_style_1:not(.text-center) .cs_section_title,
  .cs_section_heading.cs_style_1:not(.text-center) .cs_section_text {
    text-align: center;
  }

  /* --- CTA button --- */
  .cs_btn.cs_cta_primary {
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 0.875rem;
  }

  .cs_cta.cs_style_1 .cs_cta_text h2 {
    font-size: 2rem;
  }
}

/* ============================================================
   max-width: 575px
   ============================================================ */
@media (max-width: 575px) {
  /* --- Header --- */
  .cs_site_branding img {
    height: 32px;
    max-width: 120px;
  }

  .cs_main_header_in {
    padding: 0.75rem 0;
    gap: 8px;
  }

  .cs_menu_toggle {
    width: 40px;
    height: 40px;
  }

  .cs_menu_toggle span {
    width: 18px;
  }

  .cs_nav {
    gap: 1.5rem;
  }

  .cs_nav_list > li > a {
    padding: 1rem 0 !important;
    font-size: 0.95rem !important;
  }

  .cs_header_cta {
    padding: 0.875rem 1.5rem;
  }

  /* --- Hero --- */
  .cs_hero.cs_style_1 {
    padding: 100px 0 40px;
  }

  .cs_hero_title.cs_fs_68 {
    font-size: 32px !important;
    line-height: 1.3em;
  }

  .cs_hero_subtitle {
    font-size: 16px;
    line-height: 1.6em;
  }

  .cs_hero_thumbnail img {
    max-width: 100%;
  }

  /* --- Counter --- */
  .cs_funfact_number.cs_fs_68 {
    font-size: 42px !important;
  }

  .cs_funfact h3.cs_fs_29 {
    font-size: 20px !important;
  }

  /* --- Features --- */
  .cs_section_title.cs_fs_50 {
    font-size: 28px !important;
    line-height: 1.3em;
  }

  .cs_section_text.cs_fs_21 {
    font-size: 16px !important;
  }

  .cs_iconbox_title.cs_fs_29 {
    font-size: 22px !important;
  }

  .cs_iconbox_subtitle.cs_fs_18 {
    font-size: 16px !important;
  }

  .cs_card_content .cs_section_title {
    font-size: 1.75rem;
  }

  .cs_list.cs_style_1 li > span:last-child {
    font-size: 0.9375rem;
  }

  .cs_list.cs_style_1 li {
    gap: 1rem;
  }

  /* Cards */
  .cs_card.cs_style_1 {
    padding: 30px 20px;
  }

  .cs_card.cs_style_1 .cs_section_title.cs_fs_50 {
    font-size: 26px !important;
  }

  .cs_card.cs_style_1 .cs_list li {
    font-size: 16px !important;
  }

  /* Dark section */
  .row.cs_heading_bg .col-xl-5.order-lg-2,
  .row.cs_heading_bg .col-lg-5.order-lg-2 {
    height: 35vh;
    max-height: 280px;
  }

  .row.cs_heading_bg .col-xl-6.order-lg-1,
  .row.cs_heading_bg .col-lg-7.order-lg-1 {
    padding: 1.5rem 1rem;
  }

  /* --- Services --- */
  .cs_iconbox.cs_style_2 {
    padding: 30px 20px;
  }

  .cs_iconbox.cs_style_2 h3.cs_fs_21 {
    font-size: 18px !important;
  }

  .cs_iconbox.cs_style_2 p {
    font-size: 15px;
  }

  /* --- Pricing --- */
  .cs_pricing_table.cs_style_1 {
    padding: 30px 20px;
  }

  .cs_pricing_table.cs_style_1 h2.cs_fs_32 {
    font-size: 24px !important;
  }

  .cs_pricing_feature_list li {
    font-size: 15px;
  }

  .cs_pricing_badge_strip {
    margin: -30px -20px 20px -20px;
  }

  /* --- FAQ --- */
  .cs_accordian {
    padding: 20px 15px;
    margin-bottom: 16px;
  }

  .cs_accordian_head.cs_fs_21 {
    font-size: 16px !important;
  }

  .cs_accordian_body {
    font-size: 15px;
  }

  /* --- Demo form --- */
  .cs_contact_form {
    padding: 30px 20px;
  }

  .cs_contact_form h2 {
    font-size: 26px !important;
  }

  .cs_contact_form input,
  .cs_contact_form textarea {
    font-size: 15px;
    padding: 12px 15px;
  }

  /* --- Footer --- */
  .cs_footer.cs_style_1 {
    padding: 60px 0 30px;
  }

  .cs_footer.cs_style_1 .cs_footer_widget {
    margin-bottom: 30px;
  }

  .cs_footer_copyright {
    font-size: 14px;
    text-align: center;
  }

  /* --- Buttons --- */
  .cs_btn.cs_style_1 {
    padding: 14px 28px;
    font-size: 12px;
    width: 100%;
    max-width: 280px;
    text-align: center;
    display: inline-block;
  }

  /* --- Spacing --- */
  .cs_height_130 {
    height: 60px;
  }

  .cs_height_120 {
    height: 50px;
  }

  .cs_height_lg_80 {
    height: 40px;
  }

  .cs_gap_y_24 {
    row-gap: 20px;
  }

  .cs_gap_y_40 {
    row-gap: 24px;
  }

  /* --- Container --- */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ============================================================
   max-width: 375px
   ============================================================ */
@media (max-width: 375px) {
  /* --- Header --- */
  .cs_site_branding img {
    height: 28px;
    max-width: 100px;
  }

  .cs_main_header_in {
    gap: 6px;
  }

  /* --- Hero --- */
  .cs_hero_title.cs_fs_68 {
    font-size: 28px !important;
  }

  /* --- Features --- */
  .cs_section_title.cs_fs_50 {
    font-size: 24px !important;
  }

  /* --- Buttons --- */
  .cs_btn.cs_style_1 {
    padding: 12px 24px;
    font-size: 11px;
  }

  /* --- Navigation (tiny screens) --- */
  .cs_nav {
    gap: 1rem !important;
  }

  .cs_nav_list > li > a {
    padding: 0.85rem 0 !important;
    font-size: 0.875rem !important;
  }

  .cs_header_cta {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.7rem !important;
  }
}

/* ============================================================
   LANDSCAPE MODE MOBILE
   ============================================================ */
@media (max-width: 991px) and (orientation: landscape) {
  .cs_hero.cs_style_1 {
    padding: 100px 0 50px;
  }

  .cs_main_header_center {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .cs_nav {
    gap: 1.5rem !important;
  }
}

/* ============================================================
   SAFARI iOS
   ============================================================ */
@supports (-webkit-touch-callout: none) {
  .cs_main_header_center {
    height: -webkit-fill-available !important;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .cs_site_header,
  .cs_menu_toggle,
  .cs_header_overlay,
  .cs_btn,
  .cs_footer {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }
}

/* ============================================================
   HERO BUTTONS — styles autonomes, hors cascade cs_btn
   ============================================================ */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

/* Essayer gratuitement — accent cyan fill */
.hero-btn--primary {
  background: #60c4e3;
  color: #0d1b2a;
  border: 2px solid #60c4e3;
}

.hero-btn--primary:hover {
  background: #0d1b2a;
  border-color: #0d1b2a;
  color: #fafaf8;
}

/* Demander une démo — ghost outline */
.hero-btn--ghost {
  background: transparent;
  color: #0d1b2a;
  border: 2px solid #0d1b2a;
  font-weight: 400;
}

.hero-btn--ghost:hover {
  background: #0d1b2a;
  color: #fafaf8;
}

@media (max-width: 575px) {
  .hero-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.875rem 1.5rem;
  }
}
