.hidden{display:none !important;}
:root {
    --primary-color: #BE0E4D;      /* ROUGE d’origine */
    --primary-dark: #980B3D;       /* ROUGE foncé */
    --secondary-color: #f2d6d5;    /* (on ne l’utilise plus pour le fond) */

    --text-color: #333333;
    --text-light: #666666;
    --accent-color: #E6D2B5;
    --white: #FFFFFF;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --radius: 12px;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body#module-wigfinder-display{
    font-family: var(--font-body);
    background-color: #F6F1EA; /* beige / crème */
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    width: 100%;
    max-width: 800px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin: auto;
    transition: all 0.3s ease;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background-color: #eee;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.5s ease;
}

/* Question Box */
.question-box {
    animation: fadeIn 0.5s ease;
}

.question-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.option-card {
    background: var(--white);
    border: 2px solid #eee;
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.option-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(190, 14, 77, 0.15);
}

.option-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(190, 14, 77, 0.05);
}

.option-text {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Navigation */
.navigation-buttons{
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}


.nav-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn.primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.nav-btn.primary:hover {
    background-color: var(--primary-dark);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.9rem;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 820px) {

    /* Tablet */
    .main-container {
        padding: 30px;
        max-width: 90%;
    }

    .header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {

    /* Mobile */
body#module-wigfinder-display{
        padding: 10px;
    }

    .main-container {
        padding: 20px;
        border-radius: 15px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .question-title {
        font-size: 1.4rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
        /* Stack options on mobile */
    }

    .option-card {
        min-height: 80px;
        padding: 15px;
    }

    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .form-row{
  display: flex;
  gap: 20px;
}


    .radio-group{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

}

/* Contact Form Styles */
.contact-form-box {
    animation: fadeIn 0.5s ease;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(190, 14, 77, 0.1);
}

textarea {
    background-color: #f9f9f9;
    color: #555;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

/* Standalone wrapper */
body#module-wigfinder-display .wigfinder-standalone{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px 16px;
}


/* === Results product cards (v121) === */
#results-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.product-card{
  display:block;
  text-decoration:none;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover{
  transform: translateY(-2px);
  border-color: rgba(190,14,77,0.25);
  box-shadow: 0 14px 40px rgba(190,14,77,0.12);
}
.product-card .product-image{
  width:100%;
  height: 220px;
  object-fit: cover;
  display:block;
  background:#f4f4f4;
}
.product-meta{
  padding: 14px 16px 16px;
}
.product-title{
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}
.product-price{
  color: var(--primary-color);
  font-weight: 700;
}

/* Clickable recommendation cards */
.result-card-link{
  display:block;
  text-decoration:none;
  color:inherit;
}
.result-card-link:focus{outline:2px solid rgba(190,14,77,.35); outline-offset:4px; border-radius:12px;}


/* === Wigfinder recommended products clickable images === */
body#module-wigfinder-display .product-link{
  display:block;
  color: inherit;
  text-decoration: none;
}
body#module-wigfinder-display .product-link:hover{
  text-decoration: none;
}
body#module-wigfinder-display .product-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body#module-wigfinder-display .wf-loading{
  text-align:center;
  padding: 24px 0;
  color: #666;
}
body#module-wigfinder-display .results-more{
  margin-top: 18px;
  text-align: center;
}
