/* ========================================
   VARIABLES
   ======================================== */
:root {
    /* Colors */
    --color-primary: #2B44A7;
    --color-white: #FFFFFF;
    --color-light-bg: #F8F9FA;
    --color-dark: #2C3E50;
    --color-text: #333333;
    --color-border: #E0E0E0;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: Montserrat !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ========================================
   STEP DETAILS
   ======================================== */
.step-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-container {
  display: flex;
  align-items: center;            /* Centre verticalement */
  justify-content: space-between; /* Espace entre texte et icône */
  width: 100%;           
  border-radius: 20px;
  transition: var(--transition-base);
  cursor: pointer;
  box-sizing: border-box;
}

.step-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1C274C;
    line-height: 1.6;
    width: 100%;
    margin-top: 0;
}

.step-item.active .step-details {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #E5E7EB;
}

.step-item.active .step-icon svg {
    transform: rotate(90deg);
}

.step-icon svg {
    transition: transform 0.3s ease;
}


/* ========================================
   HEADER
   ======================================== */
.header {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.back-button:hover {
    opacity: 0.8;
    transform: translateX(-4px);
}

.back-button svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main {
    padding: var(--spacing-2xl) 0;
    min-height: 100vh;
}

.page-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

/* ========================================
   PRODUCT SECTION
   ======================================== */
.product-section {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-boxes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.boxes-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.3;
    filter: blur(2px);
}

.bracelets {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
}

.bracelet {
    width: 140px;
    height: auto;
    object-fit: contain;
    transition: var(--transition-base);
}

.bracelet:hover {
    transform: scale(1.05);
}

.bracelet-blue {
    transform: scaleX(-1);
}

.bracelet-blue:hover {
    transform: scaleX(-1) scale(1.05);
}

/* ========================================
   TITLE & DESCRIPTION
   ======================================== */
.product-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.description {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.description strong {
    font-weight: 600;
}

/* ========================================
   STEPS
   ======================================== */
.steps {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.step-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    transition: var(--transition-base);
    cursor: pointer;
}

.step-item:hover {
    background: var(--color-light-bg);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(43, 68, 167, 0.15);
}

.step-text {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
}

.step-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 60px;
    height: 60px;
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--color-white);
    border-radius: 20px;
    padding: var(--spacing-2xl);
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}

.modal-text {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    text-align: center;
    margin: 0;
    padding-top: var(--spacing-lg);
}

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

/* Tablet - 768px */
@media screen and (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }

    .product-section {
        min-height: 300px;
        max-width: 500px;
    }

    .bracelet {
        width: 120px;
    }

    .product-title {
        font-size: 24px;
    }

    .description {
        font-size: 15px;
    }

    .step-text {
        font-size: 15px;
    }

    .modal-content {
        padding: var(--spacing-xl);
    }

    .modal-text {
        font-size: 15px;
    }
}

/* Mobile - 576px */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .header {
        padding: var(--spacing-md) 0;
    }

    .back-button {
        font-size: 14px;
    }

    .main {
        padding: var(--spacing-xl) 0;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: var(--spacing-xl);
    }

    .product-section {
        min-height: 250px;
        max-width: 100%;
    }

    .bracelets {
        gap: var(--spacing-md);
    }

    .bracelet {
        width: 100px;
    }

    .product-title {
        font-size: 22px;
        margin-bottom: var(--spacing-md);
    }

    .description {
        font-size: 14px;
        margin-bottom: var(--spacing-xl);
    }

    .steps {
        gap: var(--spacing-md);
    }

    .step-item {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .step-text {
        font-size: 16px;
    }

    .step-icon svg {
        width: 30px;
        height: 30px;
    }

    .modal-content {
        padding: var(--spacing-lg);
        max-width: 90%;
    }

    .modal-text {
        font-size: 14px;
    }

    .modal-close {
        font-size: 24px;
    }
}

/* Small Mobile - 375px */
@media screen and (max-width: 375px) {
    .page-title {
        font-size: 22px;
    }

    .bracelet {
        width: 85px;
    }

    .product-title {
        font-size: 20px;
    }

    .description {
        font-size: 13px;
    }

    .step-text {
        font-size: 13px;
    }

    .modal-text {
        font-size: 13px;
    }
}

@media screen and (min-width: 1024px) {
    .container {
        max-width: 1000px ;
    }
    .product-image {
        height: auto;
    }
    .product-image-container{
        height: auto;
    }
    h3 {
        font-size: 35px !important;
    }
    .step-text{
        font-size: 25px;
    }

    .step-details{
        font-size: 15px;
    }
    
    .steps{
        max-width: 700px;
    }
}