/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ------------------------------------------------------
   🎨 Styles personnalisés du Configurateur Onepage
------------------------------------------------------ */

/* ======================================================
   ✅ Barre de sélection des secteurs
====================================================== */

.sector-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f9;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  border: 1px solid #e4e4ec;
  overflow: hidden;
}

.sector-nav {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 0.5rem;
  color: #8b5cf6;
  transition: color 0.2s ease;
}
.sector-nav:hover {
  color: #5b36a8;
}

.sector-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
.sector-tabs::-webkit-scrollbar {
  display: none;
}

.sector-tabs li {
  margin: 0 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #5a5a68;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, color 0.3s, box-shadow 0.3s;
}
.sector-tabs li:hover {
  background: #ede9fe;
  color: #5b36a8;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.sector-tabs li.active {
  background: #5b36a8;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(91, 54, 168, 0.2);
}

/* ======================================================
   ✅ Conteneur principal
====================================================== */

.configurator-container {
  padding: 2rem 1rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

ul#sections-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ======================================================
   ✅ Structure des sections
====================================================== */

/* Chaque section (avec bloc admin à gauche) */
.section-wrapper {
  display: flex;
  align-items: stretch;
  margin-bottom: 1.5rem;
  background: #f9f9fb;
  border-radius: 10px;
  border: 1px solid #ececf3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.3s ease;
}
.section-wrapper:hover {
  box-shadow: 0 4px 12px rgba(91, 54, 168, 0.1);
  transform: translateY(-3px);
}

/* Bloc admin vertical à gauche */
.section-admin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f5f5f9;
  border-right: 1px solid #e0e0e6;
  width: 48px;
  gap: 0.4rem;
  padding: 0.6rem 0;
}
.section-admin button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #6b6b7d;
  transition: all 0.2s ease;
}
.section-admin button:hover {
  color: #5b36a8;
  transform: scale(1.2);
}

/* Zone de contenu de la section */
.section {
  flex: 1;
  padding: 1.2rem;
  background: #ffffff;
  border-left: 4px solid transparent;
  transition: border-color 0.3s ease;
}
.section:hover {
  border-left: 4px solid #8b5cf6;
}

/* Exemple de contenu Elementor */
.section-content {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #3a3a45;
}

/* ======================================================
   ✅ Bouton "Ajouter une section"
====================================================== */

.add-section-btn {
  display: block;
  margin: 2rem auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #5b36a8);
  color: #ffffff;
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(91, 54, 168, 0.25);
  transition: all 0.3s ease;
}
.add-section-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(91, 54, 168, 0.35);
}

/* ======================================================
   ✅ Sortable (drag & drop)
====================================================== */

.sortable-placeholder {
  background: #ede9fe;
  border: 2px dashed #8b5cf6;
  height: 100px;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  opacity: 0.6;
  transition: all 0.2s ease;
}

/* ======================================================
   ✅ Loading
====================================================== */

.section-content.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}