body { 
    border: 0px solid red; 
}    
.kfy-hide-extra { display: none; }

.kfy-home-cta__images img{ max-height:260px; object-fit:cover; }

.kfy-top-tabs{
  display:grid;
  gap:0.75rem;
  flex-wrap:nowrap;
  align-items:center;
  margin:0 0 1rem;
}

.kfy-top-tab{
  display: block;
  flex-shrink: 0;
  padding:.6rem 1rem;
  border:3px solid rgba(0,0,0,.15);
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  color:#f3f;
}

.kfy-top-tab:hover{
  text-decoration:none;
}

/* Force container styles */
body #page .mainmenu-container,
body #center_column .mainmenu-container,
body .mainmenu-container {
  margin: 20px auto !important; /* Center with auto margins */
  padding: 0 !important; 
  width: 100% !important;
  display: flex !important; /* Use flex for centering */
  justify-content: center !important; /* Center horizontally */
  align-items: center !important; /* Center vertically */
  clear: both !important;
}

/* MAIN MENU - White background with proper flex display */
body #page .mainmenu-container ul.menu,
body #center_column .mainmenu-container ul.menu,
body .mainmenu-container ul.menu {
    list-style-type: none;
    margin: 10px auto; /* Center with auto */
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center; /* Center tabs */
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping */
    min-height: 60px;
    border-radius: 4px;
    max-width: 95%; /* Prevent too wide */
}

/* INDIVIDUAL TABS - Green color (#12725c) */
body #page .mainmenu-container ul.menu li.tab.motif-tab,
body #center_column .mainmenu-container ul.menu li.tab.motif-tab,
body .mainmenu-container ul.menu li.tab.motif-tab {
    display: block; /* Force block display */
    font-size: 14px;
    padding: 10px 20px;
    background-color: #12725c; /* Green tab color */
    margin: 5px;
    border-radius: 4px;
    border: 1px solid #0d5c4a;
    min-width: 180px;
    text-align: center;
}

/* Force list items to display properly */
body #page .mainmenu-container ul.menu li,
body #center_column .mainmenu-container ul.menu li,
body .mainmenu-container ul.menu li {
    display: inline-block;
    list-style: none;
    float: none;
}

/* ACTIVE TAB - Different green with thicker bottom border */
body #page .mainmenu-container ul.menu li.tab.motif-tab.active,
body #center_column .mainmenu-container ul.menu li.tab.motif-tab.active,
body .mainmenu-container ul.menu li.tab.motif-tab.active {
    background-color: #0d5c4a; /* Darker green */
    border-bottom: 4px solid #094736;
    position: relative;
}

/* Tab links - Force block display */
body #page .mainmenu-container ul.menu li.tab.motif-tab a,
body #center_column .mainmenu-container ul.menu li.tab.motif-tab a,
body .mainmenu-container ul.menu li.tab.motif-tab a {
    display: block;
    text-decoration: none;
    color: #ffffff;
    background: transparent;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Text inside tabs */
body #page .mainmenu-container ul.menu li.tab.motif-tab a h1,
body #center_column .mainmenu-container ul.menu li.tab.motif-tab a h1,
body .mainmenu-container ul.menu li.tab.motif-tab a h1 {
    line-height: 1.4;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: none;
    display: block;
}

/* Active tab text */
body #page .mainmenu-container ul.menu li.tab.motif-tab.active a h1,
body #center_column .mainmenu-container ul.menu li.tab.motif-tab.active a h1,
body .mainmenu-container ul.menu li.tab.motif-tab.active a h1 {
    color: #ffffff;
}

/* Info icon - Keep on right */
body #page .mainmenu-container ul.menu li:last-child,
body #center_column .mainmenu-container ul.menu li:last-child,
body .mainmenu-container ul.menu li:last-child {
    margin-left: auto;
    margin-right: 10px;
    order: 999; /* Force to end in flexbox */
}

/* Info image */
body #page .mainmenu-container ul.menu li img.opener,
body #center_column .mainmenu-container ul.menu li img.opener,
body .mainmenu-container ul.menu li img.opener {
    width: 32px;
    height: 32px;
    cursor: pointer;
    vertical-align: middle;
}

/* Override PrestaShop ul styles */
body #page .mainmenu-container ul,
body #center_column .mainmenu-container ul,
body .mainmenu-container ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Force all h1 elements inside menu to behave */
body #page .mainmenu-container h1,
body #center_column .mainmenu-container h1,
body .mainmenu-container h1 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    display: block;
}

/* Reset any default link styles */
body #page .mainmenu-container a,
body #center_column .mainmenu-container a,
body .mainmenu-container a {
    text-decoration: none;
    display: block;
}

/* jQuery UI overrides */
body #page .mainmenu-container ul.menu.ui-tabs-nav,
body #center_column .mainmenu-container ul.menu.ui-tabs-nav,
body .mainmenu-container ul.menu.ui-tabs-nav {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    justify-content: center;
}

body #page .mainmenu-container ul.menu.ui-widget-header,
body #center_column .mainmenu-container ul.menu.ui-widget-header,
body .mainmenu-container ul.menu.ui-widget-header {
    background: #fff;
    border: 0px solid #ddd;
}

/* Save Motif Modal Styling */
.kfy-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease;
}

.kfy-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kfy-modal-content {
  background: #fff;
  max-width: 540px;
  width: 90%;
  margin: 20px;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

.kfy-modal-header {
  background: linear-gradient(135deg, #12725c 0%, #0d5245 100%);
  padding: 24px 28px;
  color: #fff;
}

.kfy-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.kfy-modal-body {
  padding: 28px;
}

.kfy-form-group {
  margin-bottom: 20px;
}

.kfy-form-group label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 14px;
}

.kfy-form-group input[type="text"],
.kfy-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.kfy-form-group input[type="text"]:focus,
.kfy-form-group textarea:focus {
  outline: none;
  border-color: #12725c;
  box-shadow: 0 0 0 3px rgba(18, 114, 92, 0.1);
}

.kfy-form-group textarea {
  min-height: 100px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.5;
}

.kfy-form-group small {
  display: block;
  margin-top: 6px;
  color: #6c757d;
  font-size: 12px;
}

.kfy-checkbox-group {
  margin-bottom: 24px;
}

.kfy-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kfy-checkbox-text {
  color: #2c3e50;
  font-size: 14px;
  font-weight: 600;
  user-select: none;
  pointer-events: none;
  line-height: 20px;
}

.kfy-checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: #12725c;
  border: 2px solid #ddd;
  border-radius: 4px;
  flex-shrink: 0;
}

.kfy-checkbox:focus {
  outline: 2px solid #12725c;
  outline-offset: 2px;
}

.kfy-modal-footer {
  padding: 20px 28px;
  background: #f8f9fa;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid #e9ecef;
}

.kfy-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.kfy-btn-primary {
  background: #12725c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(18, 114, 92, 0.3);
}

.kfy-btn-primary:hover {
  background: #0d5245;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(18, 114, 92, 0.4);
}

.kfy-btn-primary:active {
  transform: translateY(0);
}

.kfy-btn-secondary {
  background: #fff;
  color: #4a4a4a;
  border: 2px solid #ddd;
}

.kfy-btn-secondary:hover {
  background: #f8f9fa;
  border-color: #12725c;
  color: #12725c;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .kfy-modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .kfy-modal-header,
  .kfy-modal-body,
  .kfy-modal-footer {
    padding: 20px;
  }
  
  .kfy-modal-header h3 {
    font-size: 1.25rem;
  }
  
  .kfy-modal-footer {
    flex-direction: column-reverse;
  }
  
  .kfy-btn {
    width: 100%;
  }
}

/* Enhanced Typography & Layout Styling */
.help {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    line-height: 1.8;
}

.help h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #12725c;
    line-height: 1.3;
}

.help h1:first-child {
    margin-top: 0;
}

.help h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.help h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.help p {
    font-size: 1.05rem;
    color: #4a4a4a;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.help strong {
    color: #12725c;
    font-weight: 600;
}

.help .caption {
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: block;
}

.help iframe {
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 100%;
}

.image-block {
    margin: 2rem 0;
    text-align: center;
}

.youtube {
    position: relative;
    padding-bottom: 56.25%;                                                         
    height: 0;
    margin: 2rem 0;
    background: transparent;
    cursor: pointer;
}

.youtube img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.youtube .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,0,0,0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.youtube .play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.youtube:hover .play-button {
    background: rgba(255,0,0,1);
    transform: translate(-50%, -50%) scale(1.1);
}

.register {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 6px;
    font-size: 1.05rem;
}

.register a {
    color: #1976d2;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.register a:hover {
    color: #0d47a1;
}

.btn-primary {
    background: #12725c;
    color: #fff;
    padding: 12px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(18,114,92,0.3);
}

.btn-primary:hover {
    background: #0d5245;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(18,114,92,0.4);
    color: #fff;
    text-decoration: none;
}

.h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .help {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
    
    .help h1 {
        font-size: 1.75rem;
    }
    
    .help h2 {
        font-size: 1.5rem;
    }
    
    .help h3 {
        font-size: 1.25rem;
    }
    
    .help p {
        font-size: 1rem;
    }
}

.motif-tab.disabled { opacity: .4; pointer-events: none; }
.motif-tab.disabled span { cursor: not-allowed; display:block; }

.kfy-home-cta__banner{
  background:#0b6b57;
  color:#fff;
  padding:12px 18px;
  border-radius:8px;
  font-weight:600;
  margin-top:18px;
}

