/**
 * Core Styles - Optimized CSS for Cabinet CreArte
 * Extracted from the original Avada theme styles.css (1.4MB)
 * This file contains only the essential styles used by the site.
 * 
 * Original backup: assets/css/styles.css.backup
 *
 * CORRECTIONS APPLIED:
 * - Layout: Fixed header offset (white band on left)
 * - Dropdown: Fixed arrow positioning next to text
 * - Typography: Applied correct Google Fonts throughout
 * - Footer: Fixed offset issues
 * - Contact button: Fixed positioning and styling
 * - Legal info: Fixed font and link colors
 */

/* ============================================
   AVADA LEGACY CLASSES (for backward compatibility)
   These classes are used in the HTML but we provide 
   minimal styling to maintain layout structure
   ============================================ */

/* ============================================
   GLOBAL LAYOUT - Fix offset issues
   ============================================ */

/* Boxed Layout Wrapper */
#boxed-wrapper {
  width: 100%;
  margin: 0 auto;
}

#wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  clear: both;
  position: relative;
  left: 0;
  right: 0;
}

.fusion-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* Body and html reset - Fix white band on left */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Fusion body for Avada compatibility */
.fusion-body {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Fix any potential offset issues */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #5a5d62;
  background-color: #ffffff;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.fusion-header-wrapper {
  position: relative;
  z-index: 1000;
  background-color: #242729;
}

.fusion-header-v1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background-color: #242729;
  min-height: 80px;
}

.fusion-header-v1.fusion-logo-left .fusion-header {
  justify-content: flex-start;
}

.fusion-header {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.fusion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.fusion-header-sticky-height {
  height: 0;
}

/* Logo et alignement */
.fusion-logo-alignment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.fusion-logo-left .fusion-logo {
  margin-right: auto;
}

.fusion-logo-left .fusion-main-menu {
  margin-left: auto;
}

/* ============================================
   LOGO STYLES
   ============================================ */

.fusion-logo {
  display: block;
  margin: 0;
}

.fusion-logo-link {
  display: inline-block;
}

.fusion-standard-logo {
  max-width: 100%;
  height: auto;
  max-height: 68px;
  width: auto;
}

/* ============================================
   NAVIGATION - MAIN MENU
   ============================================ */

.fusion-main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.fusion-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.fusion-menu > .menu-item {
  position: relative;
  display: flex;
  align-items: center;
}

.fusion-menu > .menu-item > a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  text-decoration: none;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  gap: 5px;
}

.fusion-menu > .menu-item > a:hover {
  color: #2ba0a3;
  background-color: rgba(255, 255, 255, 0.05);
}

.menu-item.current-menu-item > a,
.menu-item.current_page_item > a {
  color: #2ba0a3;
}

.fusion-bar-highlight {
  display: block;
  padding: 0;
}

.menu-text {
  display: block;
}

/* Submenu */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.menu-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
}

.sub-menu .menu-item {
  display: block;
  border-bottom: 1px solid #eee;
}

.sub-menu .menu-item:last-child {
  border-bottom: none;
}

.sub-menu .menu-item a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  text-transform: none;
}

.fusion-dropdown-submenu {
  position: relative;
}

/* Mega Menu */
.fusion-megamenu-menu {
  position: static;
}

/* ============================================
   DROPDOWN ARROW - Fix positioning next to text
   ============================================ */

/* Caret/Dropdown Arrow */
.fusion-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  font-size: 10px;
  line-height: 1;
  color: #ffffff;
}

.dropdown-arrow {
  border: none;
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  color: #ffffff;
}

/* Ensure menu item with children has proper flex layout */
.menu-item-has-children > a {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
}

/* Ensure text and caret stay on same line */
.menu-item-has-children > a .menu-text {
  display: inline-block;
  white-space: nowrap;
}

/* Fix submenu positioning */
.menu-item-has-children > .sub-menu {
  top: 100%;
  left: 0;
  margin-top: 0;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.fusion-mobile-menu-icons {
  display: none;
}

.mobile-menu-toggle {
  cursor: pointer;
  padding: 10px;
}

.hamburger-icon {
  font-size: 24px;
  color: #333;
}

.fusion-mobile-nav-holder {
  display: none;
}

.fusion-mobile-nav-holder .fusion-menu {
  flex-direction: column;
  gap: 0;
}

.fusion-mobile-nav-holder .menu-item {
  border-bottom: 1px solid #eee;
}

.fusion-mobile-nav-holder .menu-item a {
  padding: 15px 20px;
  display: block;
}

.menu-icon {
  margin-right: 10px;
}

/* ============================================
   CONTENT AREA - Fix typography
   ============================================ */

#main {
  clear: both;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Typography - Global font applications */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #242930;
}

p, li, div, span {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Content text */
#content p,
#content li,
#content div {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #5a5d62;
}

/* Links in content */
#content a {
  color: #2ba0a3;
  text-decoration: none;
}

#content a:hover {
  color: #1e7e81;
  text-decoration: underline;
}

.width-100 {
  width: 100%;
}

.fusion-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

#content {
  width: 100%;
}

.full-width {
  width: 100%;
}

/* ============================================
   FOOTER STYLES - Fixed offset issues
   ============================================ */

.fusion-footer {
  background: #1e2124;
  color: #ccc;
  padding: 30px 0 30px;
  width: 100%;
  margin: 0;
  position: relative;
  left: 0;
  right: 0;
}

.fusion-footer-widget-area {
  padding-bottom: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.fusion-columns {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.fusion-columns-2 > .fusion-column {
  width: 50%;
}

.fusion-column {
  padding: 0 15px;
  margin-bottom: 30px;
}

.fusion-column-last {
  float: right;
}

/* Column sizes for responsiveness */
.col-lg-6 {
  width: 50%;
}

.col-md-6 {
  width: 50%;
}

.col-sm-6 {
  width: 50%;
}

@media (max-width: 768px) {
  .col-lg-6,
  .col-md-6,
  .col-sm-6 {
    width: 100%;
  }
  
  .fusion-columns-2 > .fusion-column {
    width: 100%;
  }
  
  /* Keep footer columns side by side on mobile */
  .fusion-footer-widget-area .fusion-columns-2 > .fusion-column {
    width: 50%;
    float: left;
  }
  
  /* Keep footer button on right side on mobile */
  .fusion-footer-widget-area .fusion-column-last {
    text-align: right;
  }
  
  .fusion-footer-widget-area .fusion-alignright {
    float: right;
    display: inline-block;
  }
}

/* Footer Widget */
.fusion-footer-widget-column {
  margin-bottom: 30px;
}

.widget {
  margin-bottom: 20px;
}

.textwidget {
  color: #ccc;
  line-height: 1.6;
}

/* Social Networks */
.fusion-social-networks {
  display: flex;
  gap: 15px;
}

.boxed-icons .fusion-social-networks {
  justify-content: flex-start;
}

.fusion-social-networks-wrapper {
  display: flex;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2ba0a3;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #1e7e81;
  transform: translateY(-2px);
}

.social-icon {
  font-size: 16px;
  font-weight: bold;
}

/* ============================================
   BUTTONS
   ============================================ */

/* ============================================
   BUTTONS - Fixed positioning and styling
   ============================================ */

.fusion-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #2ba0a3;
  color: #fff !important;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  white-space: nowrap;
}

/* Footer contact button specific styles */
.fusion-footer .fusion-button-wrapper {
  display: inline-block;
  margin-top: 20px;
  text-align: right;
  width: 100%;
}

.fusion-footer .fusion-alignright .fusion-button {
  float: right;
}

.fusion-button:hover {
  background: #1e7e81;
  color: #fff;
}

.button-flat {
  border-radius: 0;
}

.button-large {
  padding: 18px 36px;
  font-size: 16px;
}

.button-custom {
  /* Custom button styles */
}

.fusion-button-default {
  /* Default button styles */
}

.fusion-button-default-span {
  /* Button span styles */
}

.fusion-button-default-type {
  /* Button type styles */
}

.fusion-button-text {
  display: inline-block;
}

/* ============================================
   COPYRIGHT AREA
   ============================================ */

.fusion-footer-copyright-area {
  background: #15171a;
  padding: 20px 0;
  text-align: center;
  width: 100%;
  margin: 0;
}

.fusion-copyright-content {
  padding: 0 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.fusion-copyright-notice {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #888;
}

.fusion-legal-info {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #666;
}

/* Copyright links - fix blue link issue */
.fusion-copyright-notice a,
.fusion-footer-copyright-area a {
  color: #2ba0a3 !important;
  text-decoration: none !important;
}

.fusion-copyright-notice a:hover,
.fusion-footer-copyright-area a:hover {
  color: #1e7e81 !important;
  text-decoration: underline !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.fusion-clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.fusion-alignright {
  float: right;
}

.fusion-alignleft {
  float: left;
}

.fusion-aligncenter {
  text-align: center;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
  .fusion-header-v1 {
    padding: 15px 20px;
  }
  
  .fusion-menu {
    gap: 15px;
  }
  
  .fusion-menu > .menu-item > a {
    padding: 10px 15px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .fusion-header-v1 {
    flex-wrap: wrap;
    padding: 15px;
    min-height: auto;
  }
  
  .fusion-row {
    padding: 0 15px;
    flex-wrap: wrap;
  }
  
  .fusion-logo {
    flex: 0 0 auto;
  }
  
  .fusion-logo img {
    max-height: 50px;
    width: auto;
  }
  
  .fusion-main-menu {
    display: none;
  }
  
  .fusion-mobile-menu-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  .mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .hamburger-icon {
    font-size: 20px;
    color: #ffffff;
  }
  
  .fusion-mobile-nav-holder {
    display: none;
    width: 100%;
    background: #1a1c1e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .fusion-mobile-nav-holder.open {
    display: block;
  }
  
  .fusion-mobile-nav-holder .fusion-menu {
    flex-direction: column;
    gap: 0;
  }
  
  .fusion-mobile-nav-holder .menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .fusion-mobile-nav-holder .menu-item a {
    padding: 15px 20px;
    display: block;
    color: #ffffff;
  }
  
  .fusion-mobile-nav-holder .menu-item a:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .fusion-mobile-nav-holder .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
  }
  
  .fusion-mobile-nav-holder .sub-menu .menu-item a {
    padding-left: 40px;
  }
  
  .fusion-columns {
    flex-direction: column;
  }
  
  .fusion-columns-2 > .fusion-column {
    width: 100%;
  }
  
  .fusion-footer {
    padding: 40px 0 20px;
  }
  
  .fusion-alignright {
    float: none;
    text-align: center;
  }
}

/* ============================================
   AVADA COLOR CLASSES (for legacy support)
   ============================================ */

.has-awb-color-4-color {
  color: rgba(43, 160, 163, 1);
}

.has-awb-color-4-background-color {
  background-color: rgba(43, 160, 163, 1);
}

/* ============================================
   MISCELLANEOUS
   ============================================ */

/* Main menu submenu border */
.fusion-main-menu .sub-menu {
  border-top: 1px solid #ffffff;
}

/* Footer specific styles */
@media only screen and (max-width: 800px) {
  .fusion-footer #text-4 .fusion-button-wrapper.fusion-alignright {
    float: right;
    margin: 0;
  }
  
  /* Keep footer columns side by side on mobile */
  .fusion-footer-widget-area .fusion-columns-2 > .fusion-column {
    width: 50%;
    float: left;
  }
  
  .fusion-footer-widget-area .fusion-column-last {
    text-align: right;
  }
  
  .fusion-footer-widget-area .fusion-alignright {
    float: right;
    display: inline-block;
  }
  
  .fusion-footer #social_links-widget-2 .fusion-social-networks.boxed-icons {
    text-align: center;
  }
  
  .fusion-footer .widget .fusion-social-networks.boxed-icons .fusion-social-network-icon:last-child {
    margin-right: 0;
  }
  
  .fusion-footer #text-4 {
    text-align: center;
  }
  
  .fusion-footer .fusion-columns .fusion-column {
    margin-bottom: 25px;
  }
}

/* ============================================
   CONTENT LAYOUT - Fix offset issues
   ============================================ */

/* Main content wrapper */
#main {
  width: 100%;
  clear: both;
  position: relative;
}

/* Content area */
#content {
  width: 100%;
  float: none;
}

/* Full width sections */
.width-100 .fusion-row,
.full-width .fusion-row {
  max-width: 100%;
  padding: 0;
}

/* Fusion row for main content */
#main > .fusion-row {
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Container for main content */
.fusion-content-unboxed {
  width: 100%;
}

/* Section layout */
.fusion-section {
  width: 100%;
  position: relative;
}

/* ============================================
   DROPDOWN MENU - Fix arrow positioning
   ============================================ */

/* Menu item with dropdown - use flex for alignment */
.menu-item-has-children {
  display: flex;
  align-items: center;
}

/* Fusion caret - ensure inline alignment */
.fusion-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  line-height: 1;
  cursor: pointer;
}

/* Dropdown arrow */
.dropdown-arrow {
  display: inline-block;
  font-size: 10px;
  color: #ffffff;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* Rotate arrow on hover */
.menu-item-has-children:hover > a .dropdown-arrow,
.fusion-caret:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* ============================================
   FOOTER - Fix button positioning
   ============================================ */

/* Footer widget area - ensure proper layout */
.fusion-footer-widget-area {
  padding: 30px 0 40px;
}

/* Footer column layout */
.fusion-footer-widget-area .fusion-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Footer widget columns */
.fusion-footer-widget-area .fusion-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

/* Footer button wrapper */
.fusion-footer .fusion-button-wrapper {
  display: inline-block;
  margin-top: 20px;
}

/* Footer widget title */
.fusion-footer .widget .widget-title {
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2ba0a3;
}

/* Footer text widget */
.fusion-footer .textwidget {
  font-size: 14px;
  line-height: 1.6;
}

/* Social networks in footer - ensure horizontal layout */
.fusion-footer .fusion-social-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fusion-footer .fusion-social-networks-wrapper {
  display: flex;
  gap: 10px;
}

/* Footer copyright area - proper alignment */
.fusion-footer-copyright-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 30px;
}

.fusion-footer-copyright-area .fusion-copyright-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 15px;
}

/* Make footer button align to right */
.fusion-footer .fusion-alignright {
  display: block !important;
  float: right !important;
}

/* ============================================
   MENTIONS LÉGALES / LEGAL INFO STYLES
   ============================================ */

/* Legal info section */
.fusion-legal-info {
  padding: 30px 0;
  margin-top: 20px;
}

/* Legal info container */
.fusion-legal-info .fusion-copyright-content {
  text-align: center;
}

/* Legal links */
.fusion-legal-info a {
  color: #2ba0a3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.fusion-legal-info a:hover {
  color: #1e7e81;
  text-decoration: underline;
}

/* Legal text styling */
.fusion-legal-info p,
.fusion-legal-info div {
  font-size: 13px;
  line-height: 1.6;
  color: #888;
}

/* Privacy policy link */
.fusion-legal-info .privacy-link {
  font-weight: 500;
}

/* Site name emphasis */
.fusion-legal-info .site-name {
  font-weight: 600;
  color: #aaa;
}
