/* ===== FONTS ===== */
@font-face {
  font-family: 'Pink Beach';
  src: url('font/Pink Beach.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Magic Castle';
  src: url('font/The Magic Castle.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== BODY ===== */
body {
  font-family: Georgia, serif;
  line-height: 1.8;
  color: #2d2d2d;
  background: radial-gradient(ellipse at center, #F5DFA0 0%, #F7EDE2 40%, #DEC88A 100%);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 0;
}

/* ===== PARALLAX ===== */
.parallax-photo {
  position: fixed;
  z-index: 1;
  opacity: 0.7;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  object-fit: contain;
  height: auto;
  pointer-events: none;
  will-change: transform;
}

/* ===== STICKY HEADER ===== */
.sticky-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, #B8860B 0%, rgba(255,255,255,0.98) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid #d4a574;
  z-index: 1000;
  padding: 40px 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.sticky-header.scrolled {
  padding: 12px 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.header-content {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
}
.header-middle {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
}
.header-right { flex: 0 1 auto; text-align: right; }

.header-logo { height: 140px; transition: height 0.3s cubic-bezier(0.4,0,0.2,1); flex-shrink: 0; }
.sticky-header.scrolled .header-logo { height: 50px; }
.header-logo img { height: 100%; width: auto; display: block; }

.header-title {
  font-family: 'Pink Beach', cursive;
  font-size: 80px; color: #FFFAF0; font-weight: normal; letter-spacing: 3px;
  transition: font-size 0.3s cubic-bezier(0.4,0,0.2,1);
  flex-grow: 1; text-align: right; line-height: 1.1;
}
.sticky-header.scrolled .header-title { font-size: 32px; }

.header-subtitle {
  font-family: 'Magic Castle', sans-serif;
  font-size: 18px; color: #666; text-align: right; margin-top: 8px;
  letter-spacing: 0.5px; transition: font-size 0.3s cubic-bezier(0.4,0,0.2,1);
}
.sticky-header.scrolled .header-subtitle { font-size: 12px; }

.header-buttons {
  display: flex; gap: 12px; justify-content: center; margin-top: 15px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.header-buttons-title {
  font-family: 'Magic Castle', sans-serif;
  font-size: 16px; color: #666; text-align: center; margin-top: 12px;
  letter-spacing: 0.5px; transition: font-size 0.3s cubic-bezier(0.4,0,0.2,1);
  font-weight: 700; text-transform: capitalize;
}
.sticky-header.scrolled .header-buttons-title { font-size: 11px; margin-top: 6px; }

.header-buttons a {
  padding: 10px 25px;
  background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
  color: white; text-decoration: none; border-radius: 25px;
  font-weight: 700; font-size: 12px; transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(212,165,116,0.3);
  text-transform: capitalize; letter-spacing: 0.5px; font-family: Georgia, serif;
}
.sticky-header.scrolled .header-buttons a { padding: 7px 18px; font-size: 10px; }
.header-buttons a:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(212,165,116,0.5); }

/* ===== NAV BUTTONS ===== */
.nav-buttons {
  position: fixed; top: auto; left: 0; right: 0;
  display: flex; gap: 15px; justify-content: center; padding: 15px 20px;
  background: rgba(255,255,255,0.98); border-bottom: 2px solid #f5f3ff;
  z-index: 999; flex-wrap: wrap; backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.nav-buttons a {
  padding: 12px 35px;
  background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
  color: white; text-decoration: none; border-radius: 30px;
  font-weight: 700; font-size: 13px; transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(212,165,116,0.3);
  text-transform: uppercase; letter-spacing: 0.5px; font-family: Georgia, serif;
}
.nav-buttons a:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(212,165,116,0.5); }

/* ===== SECTIONS ===== */
section {
  background: rgba(255,255,255,0.98);
  margin: 50px auto; padding: 60px 45px; max-width: 1300px;
  border-radius: 25px; box-shadow: 0 15px 50px rgba(0,0,0,0.1);
  animation: sectionFadeIn 0.8s ease-out; position: relative; z-index: 2;
}

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

section h2 {
  font-family: 'Pink Beach', cursive;
  font-size: 48px; font-weight: normal; color: #d4a574;
  margin-bottom: 40px; text-align: center;
  position: relative; padding-bottom: 25px; letter-spacing: 2px;
}
section h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 4px;
  background: linear-gradient(90deg, #d4a574 0%, #b8860b 100%); border-radius: 2px;
}
section h3 {
  font-family: 'Pink Beach', cursive;
  font-size: 28px; font-weight: normal; color: #d4a574;
  margin-top: 40px; margin-bottom: 20px; letter-spacing: 0.5px;
}
section p {
  margin-bottom: 20px; color: #555; font-size: 17px;
  line-height: 1.8; font-family: Georgia, serif;
}
section ul, section ol { margin-left: 20px; margin-bottom: 25px; }
section ul li { margin-bottom: 12px; color: #555; font-family: Georgia, serif; }

#noeuds, #couleurs, #attaches, #fermeture {
  scroll-margin-top: 150px;
}

/* ===== CAROUSEL ===== */
#carousels {
  background: transparent !important; margin: 0 !important; padding: 0 !important;
  padding-top: 260px !important; max-width: 100vw !important; width: 100vw !important;
  border-radius: 0 !important; box-shadow: none !important; animation: none !important;
}
.carousel-container {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 30px; align-items: center; height: 500px; width: 100%; margin: 0 auto;
}
.carousel-frame {
  background: white; border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 3px solid #f5f3ff;
  transition: all 0.4s ease; height: 100%;
}
.carousel-frame:hover { box-shadow: 0 20px 60px rgba(212,165,116,0.3); border-color: #d4a574; }
.carousel-content { width: 100%; height: 100%; position: relative; }
.carousel-content img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 20px;
}
.carousel-frame.left {
  background: linear-gradient(135deg, rgba(212,165,116,0.05) 0%, rgba(255,255,255,0.99) 100%);
  grid-column: 1;
}
.carousel-frame.right {
  background: linear-gradient(135deg, rgba(255,255,255,0.99) 0%, rgba(212,165,116,0.05) 100%);
  grid-column: 3;
}

/* ===== CUSTOMIZE ===== */
.customize-section { margin-bottom: 60px; animation: fadeInUp 0.8s ease-out; }
.customize-section h3 {
  font-size: 28px; color: #d4a574; margin-bottom: 25px;
  padding-bottom: 15px; border-bottom: 3px solid #d4a574;
}
.customize-section p { font-size: 17px; color: #666; margin-bottom: 25px; font-family: Georgia, serif; }

/* ===== IMAGES GRID ===== */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px; margin-top: 30px;
}

/* Couleurs : 3 colonnes, images grandes */
#customize .customize-section:nth-child(3) .images-grid {
  grid-template-columns: repeat(3, 1fr); gap: 20px;
}
#customize .customize-section:nth-child(3) .image-item img {
  height: 320px; object-fit: contain;
}

.image-item {
  background: white; border-radius: 15px; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 10px 35px rgba(0,0,0,0.12); border: 2px solid #f5f3ff; cursor: pointer;
}
.image-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(212,165,116,0.25); border-color: #d4a574;
}
.image-item img {
  width: 100%; height: auto; object-fit: contain; display: block; transition: transform 0.5s ease;
}
.image-item:hover img { transform: scale(1.1); }
.image-item p {
  padding: 18px; text-align: center; font-weight: 700; color: #3d2817;
  font-size: 15px; margin: 0; text-transform: capitalize;
  letter-spacing: 0.5px; font-family: Georgia, serif;
}

/* ===== MARKETS ===== */
#markets ul { list-style: none; margin: 30px 0; }
#markets li {
  padding: 20px 25px;
  background: linear-gradient(135deg, rgba(212,165,116,0.1) 0%, rgba(184,134,11,0.1) 100%);
  margin: 15px 0; border-left: 5px solid #d4a574; border-radius: 10px;
  font-size: 17px; color: #3d2817; font-weight: 600;
  transition: all 0.3s ease; font-family: Georgia, serif;
}
#markets li:hover { transform: translateX(10px); box-shadow: 0 8px 20px rgba(212,165,116,0.2); }

/* ===== CTA BUTTON ===== */
.cta-button { text-align: center; margin-top: 50px; }
.cta-button a {
  display: inline-block; padding: 18px 60px;
  background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
  color: white; text-decoration: none; border-radius: 50px;
  font-size: 18px; font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 12px 35px rgba(212,165,116,0.4);
  text-transform: uppercase; letter-spacing: 1px;
  position: relative; overflow: hidden; font-family: Georgia, serif;
}
.cta-button a::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(135deg, #b8860b 0%, #d4a574 100%);
  transition: left 0.4s ease; z-index: -1;
}
.cta-button a:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(212,165,116,0.5); }
.cta-button a:hover::before { left: 0; }

/* ===== FOOTER ===== */
#footer {
  background: linear-gradient(135deg, rgba(61,40,23,0.95) 0%, rgba(100,70,40,0.95) 100%);
  text-align: center; padding: 50px 30px; border-top: 4px solid #d4a574;
  color: white; border-radius: 0 !important; margin: 80px auto 0 auto !important;
  max-width: 100% !important; position: relative; z-index: 2;
}
#footer a {
  display: inline-block; margin: 12px 15px; padding: 12px 30px;
  background: rgba(212,165,116,0.2); color: #d4a574; text-decoration: none;
  border-radius: 25px; transition: all 0.3s ease; font-weight: 700;
  border: 2px solid #d4a574; font-family: Georgia, serif;
}
#footer a:hover { background: #d4a574; color: #3d2817; transform: translateY(-3px); }
#footer p { color: #d4a574; font-family: Georgia, serif; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sticky-header { padding: 15px 15px; }
  .sticky-header.scrolled { padding: 6px 15px; }
  .header-content { gap: 10px; }
  .header-logo { height: 70px; }
  .sticky-header.scrolled .header-logo { height: 35px; }
  .header-title { font-size: 38px; }
  .sticky-header.scrolled .header-title { font-size: 20px; }
  .header-subtitle { font-size: 11px; margin-top: 4px; }
  .sticky-header.scrolled .header-subtitle { font-size: 9px; }
  .header-buttons-title { font-size: 11px; margin-top: 6px; }
  .header-buttons a { padding: 7px 14px; font-size: 10px; }
  section { margin: 20px 10px; padding: 25px 15px; }
  section h2 { font-size: 28px; }
  section h3 { font-size: 20px; }
  .images-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; }
  .nav-buttons { gap: 6px; padding: 8px 8px; }
  .nav-buttons a { padding: 8px 14px; font-size: 11px; }
  .carousel-container { grid-template-columns: 1fr !important; height: auto !important; gap: 15px; }
  .carousel-frame { height: 250px !important; }
  .parallax-photo { display: none; }
}

@media (max-width: 480px) {
  .sticky-header { padding: 10px 10px; }
  .sticky-header.scrolled { padding: 5px 10px; }
  .header-logo { height: 50px; }
  .sticky-header.scrolled .header-logo { height: 28px; }
  .header-title { font-size: 28px; letter-spacing: 1px; }
  .sticky-header.scrolled .header-title { font-size: 16px; }
  .header-subtitle { display: none; }
  .header-buttons-title { font-size: 10px; margin-top: 4px; }
  .header-buttons a { padding: 6px 12px; font-size: 10px; }
  section { margin: 15px 8px; padding: 20px 12px; }
  section h2 { font-size: 24px; margin-bottom: 20px; }
}
/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* =====================================================
   COLLER TOUT ÇA À LA FIN DE style.css
   ===================================================== */

/* ===== FORMULAIRE DE COMMANDE ===== */
#order-form {
  position: relative;
}

/* Barre de progression */
.form-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.progress-step {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: Georgia, serif;
  background: #f0ebe0;
  color: #aaa;
  border: 2px solid #e8dcc8;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
  color: white;
  border-color: #b8860b;
}

.progress-step.done {
  background: #e8f5e9;
  color: #4caf50;
  border-color: #4caf50;
}

/* Étapes */
.form-step { animation: fadeInUp 0.4s ease-out; }
.form-step.hidden { display: none; }

/* Grille nœuds */
.form-knots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.form-knot-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #f0ebe0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-knot-card:hover {
  border-color: #d4a574;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212,165,116,0.25);
}

.form-knot-card.selected {
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184,134,11,0.3);
  transform: translateY(-5px);
}

.form-knot-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  display: block;
  padding: 8px;
}

.form-knot-card p {
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #3d2817;
  margin: 0;
  font-family: Georgia, serif;
}

/* Grille attaches / fermetures */
.form-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.form-choice-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #f0ebe0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-choice-card:hover {
  border-color: #d4a574;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212,165,116,0.25);
}

.form-choice-card.selected {
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184,134,11,0.3);
  transform: translateY(-5px);
}

.form-choice-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  padding: 15px;
}

.form-choice-card p {
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #3d2817;
  margin: 0;
  font-family: Georgia, serif;
}

/* Sélecteurs couleurs */
#color-selectors {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.color-selector-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.color-selector-row label {
  font-weight: 700;
  color: #3d2817;
  font-family: Georgia, serif;
  min-width: 80px;
  font-size: 15px;
}

.color-selector-row select {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e8dcc8;
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 14px;
  color: #3d2817;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b8860b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.color-selector-row select:focus {
  outline: none;
  border-color: #d4a574;
}

.color-selector-row select:disabled {
  background-color: #f5f0e8;
  color: #888;
  cursor: default;
}

.color-badge-noir {
  background: #222;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: Georgia, serif;
  white-space: nowrap;
}

/* Champs formulaire */
.form-field {
  margin-bottom: 25px;
}

.form-field label {
  display: block;
  font-weight: 700;
  color: #3d2817;
  font-family: Georgia, serif;
  font-size: 15px;
  margin-bottom: 8px;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="number"] {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e8dcc8;
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 15px;
  color: #3d2817;
  transition: border-color 0.3s ease;
  background: white;
}

.form-field input:focus {
  outline: none;
  border-color: #d4a574;
  box-shadow: 0 0 0 3px rgba(212,165,116,0.15);
}

.form-radio-group {
  display: flex;
  gap: 30px;
  margin-top: 8px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, serif;
  font-size: 15px;
  color: #3d2817;
  cursor: pointer;
}

.form-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #b8860b;
  cursor: pointer;
}

.form-hint {
  font-size: 14px !important;
  color: #888 !important;
  font-style: italic;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}

/* Navigation */
.form-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.form-btn-primary {
  padding: 14px 40px;
  background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  font-family: Georgia, serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(212,165,116,0.35);
}

.form-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212,165,116,0.5);
}

.form-btn-secondary {
  padding: 14px 40px;
  background: white;
  color: #b8860b;
  border: 2px solid #d4a574;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  font-family: Georgia, serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-btn-secondary:hover {
  background: #fdf6ec;
  transform: translateY(-3px);
}

.form-error {
  color: #e53935;
  font-family: Georgia, serif;
  font-size: 14px;
  text-align: center;
  margin-top: 15px;
  font-weight: 700;
}

.form-error.hidden { display: none; }
.form-success.hidden { display: none; }

/* ===== POPUP RÉCAP ===== */
.recap-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.recap-overlay.hidden { display: none; }

.recap-modal {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: fadeInUp 0.3s ease-out;
}

.recap-modal h2 {
  font-family: 'Pink Beach', cursive;
  font-size: 36px;
  color: #d4a574;
  text-align: center;
  margin-bottom: 25px;
  font-weight: normal;
}

.recap-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0ebe0;
  gap: 20px;
}

.recap-line:last-child { border-bottom: none; }

.recap-label {
  font-weight: 700;
  color: #b8860b;
  font-family: Georgia, serif;
  font-size: 14px;
  min-width: 140px;
}

.recap-value {
  color: #3d2817;
  font-family: Georgia, serif;
  font-size: 14px;
  text-align: right;
}

.recap-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.form-success {
  color: #4caf50;
  font-family: Georgia, serif;
  font-size: 15px;
  text-align: center;
  margin-top: 20px;
  font-weight: 700;
}

/* Responsive form */
@media (max-width: 768px) {
  .form-knots-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .form-choice-grid { grid-template-columns: repeat(2, 1fr); }
  .color-selector-row { flex-direction: column; align-items: flex-start; }
  .color-selector-row select { width: 100%; }
  .recap-modal { padding: 25px 20px; }
  .recap-line { flex-direction: column; gap: 4px; }
  .recap-value { text-align: left; }
}