/**
 * AromA Profil Ayurvédique - Styles
 * Version: 1.0.0
 */

/* Variables CSS */
.aroma-profil {
    --bg: #EFEFEF;
    --card: #FDF8F0;
    --card-alt: #af9b5f;
    --text: #1a1a1a;
    --text-light: #4a4a4a;
    --accent: #af9b5f;
    --accent-light: #c9b87a;
    --line: #d4c9a8;
    --beige: #F5EFE4;
    --gold-gradient: linear-gradient(135deg, #af9b5f 0%, #d4c192 100%);
    
    font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    box-sizing: border-box;
}

.aroma-profil *, .aroma-profil *::before, .aroma-profil *::after {
    box-sizing: border-box;
}

/* Header */
.aroma-profil-header {
    padding: 40px 20px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.aroma-profil .logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(175, 155, 95, 0.3);
}

.aroma-profil .logo-icon svg {
    width: 44px;
    height: 44px;
    fill: white;
}

/* Header banner */
.aroma-profil .header-banner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(175, 155, 95, 0.2);
}

.aroma-profil .header-banner .banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.aroma-profil h1 {
    margin: 0 0 12px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
}

.aroma-profil-header p {
    margin: 0 0 12px;
    color: var(--text-light);
    font-size: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Main content */
.aroma-profil-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 20px 40px;
}

/* Cards */
.aroma-profil .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.aroma-profil .header-card {
    background: linear-gradient(135deg, var(--card) 0%, var(--beige) 100%);
    border: 2px solid var(--accent-light);
}

/* Section header with icon */
.aroma-profil .section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.aroma-profil .section-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--gold-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(175, 155, 95, 0.25);
}

.aroma-profil .section-icon svg {
    width: 26px;
    height: 26px;
    fill: white;
}

/* Question styling */
.aroma-profil .q-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    margin: 0;
    color: var(--text);
}

.aroma-profil .q-number {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    letter-spacing: 1px;
}

.aroma-profil .q-desc {
    margin: 0 0 16px;
    color: var(--text-light);
    font-size: 15px;
    padding-left: 62px;
}

/* Options */
.aroma-profil .options {
    display: grid;
    gap: 10px;
}

.aroma-profil label.option {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    background: white;
    transition: all 0.2s ease;
}

.aroma-profil label.option:hover {
    border-color: var(--accent);
    background: var(--beige);
}

.aroma-profil label.option:has(input:checked) {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(175, 155, 95, 0.12) 0%, rgba(175, 155, 95, 0.05) 100%);
}

.aroma-profil input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.aroma-profil input[type="radio"]:checked {
    background: var(--accent);
    box-shadow: inset 0 0 0 3px white;
}

.aroma-profil input[type="radio"]:hover {
    border-color: var(--accent-light);
}

.aroma-profil label.option span {
    font-size: 15px;
    color: var(--text);
}

/* Row layout */
.aroma-profil .row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Buttons */
.aroma-profil .btn {
    border: 2px solid var(--accent);
    background: var(--gold-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(175, 155, 95, 0.3);
    font-family: inherit;
}

.aroma-profil .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(175, 155, 95, 0.4);
}

.aroma-profil .btn.secondary {
    border-color: var(--line);
    background: white;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.aroma-profil .btn.secondary:hover {
    background: var(--beige);
    border-color: var(--accent-light);
}

/* Result section */
.aroma-profil .result {
    display: none;
    margin-top: 20px;
    padding: 28px;
    border-radius: 20px;
    border: 2px solid var(--accent);
    background: linear-gradient(180deg, var(--card) 0%, var(--beige) 100%);
}

.aroma-profil .result h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    margin: 0 0 8px;
    color: var(--text);
}

/* Progress bars */
.aroma-profil .bars {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.aroma-profil .bar-container {
    margin-bottom: 4px;
}

.aroma-profil .bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.aroma-profil .bar-label strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
}

.aroma-profil .bar {
    border: none;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(175, 155, 95, 0.15);
    height: 14px;
}

.aroma-profil .bar > div {
    height: 100%;
    width: 0%;
    background: var(--gold-gradient);
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* Pills */
.aroma-profil .pill {
    display: inline-block;
    padding: 4px 14px;
    background: var(--beige);
    border: 1px solid var(--line);
    border-radius: 999px;
    margin: 0 4px;
    font-weight: 500;
    color: var(--accent);
}

/* Tips section */
.aroma-profil .tips-section {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.aroma-profil .tips-section h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    margin: 0 0 12px;
    color: var(--text);
}

.aroma-profil .tips-section ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-light);
}

.aroma-profil .tips-section li {
    margin-bottom: 8px;
}

/* Helper classes */
.aroma-profil .small {
    font-size: 13px;
    color: var(--text-light);
}

.aroma-profil .warn {
    color: #8B6914;
    background: rgba(175, 155, 95, 0.15);
    padding: 10px 16px;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.aroma-profil .instructions-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aroma-profil .instructions-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

/* Footer */
.aroma-profil-footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    color: var(--text-light);
    font-size: 13px;
    text-align: center;
}

/* Modal */
.aroma-profil .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.aroma-profil .modal.active {
    display: flex;
}

.aroma-profil .modal-content {
    background: var(--card);
    border-radius: 20px;
    padding: 32px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aroma-profil .modal-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    margin: 0 0 8px;
    color: var(--text);
}

.aroma-profil .modal-content p {
    color: var(--text-light);
    margin: 0 0 24px;
    font-size: 15px;
}

.aroma-profil .form-group {
    margin-bottom: 16px;
}

.aroma-profil .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.aroma-profil .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.aroma-profil .form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.aroma-profil .modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.aroma-profil .modal-buttons .btn {
    flex: 1;
}

/* Success modal */
.aroma-profil .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aroma-profil .success-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

/* Loading spinner */
.aroma-profil .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Tablette et mobile large (< 768px) */
@media (max-width: 768px) {
    .aroma-profil h1 {
        font-size: 28px;
    }
    .aroma-profil .logo-icon {
        width: 64px;
        height: 64px;
    }
    .aroma-profil .logo-icon svg {
        width: 36px;
        height: 36px;
    }
    .aroma-profil .card {
        padding: 18px;
        border-radius: 16px;
    }
    .aroma-profil .result {
        padding: 20px;
    }
    .aroma-profil .q-title {
        font-size: 22px;
    }
    .aroma-profil .section-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
    .aroma-profil .section-icon svg {
        width: 22px;
        height: 22px;
    }
    .aroma-profil .q-desc {
        padding-left: 56px;
    }
}

/* Mobile (< 576px) */
@media (max-width: 576px) {
    .aroma-profil-header {
        padding: 24px 16px 16px;
    }
    .aroma-profil h1 {
        font-size: 24px;
    }
    .aroma-profil-header p {
        font-size: 14px;
    }
    .aroma-profil .logo-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }
    .aroma-profil .logo-icon svg {
        width: 30px;
        height: 30px;
    }
    .aroma-profil-main {
        padding: 12px 16px 32px;
    }
    .aroma-profil .card {
        padding: 16px;
        margin: 12px 0;
        border-radius: 14px;
    }
    .aroma-profil .header-card .row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .aroma-profil .header-card .row > .row {
        flex-direction: column;
    }
    .aroma-profil .btn {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
    .aroma-profil .section-header {
        gap: 10px;
    }
    .aroma-profil .section-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 10px;
    }
    .aroma-profil .section-icon svg {
        width: 20px;
        height: 20px;
    }
    .aroma-profil .q-title {
        font-size: 22px; /* +2pt */
    }
    .aroma-profil .q-number {
        font-size: 14px;
    }
    .aroma-profil .q-desc {
        padding-left: 0;
        margin-top: 8px;
        font-size: 20px; /* +2pt */
        font-weight: 700;
    }
    .aroma-profil .options {
        gap: 14px; /* Augmentation de l'espacement entre les options */
    }
    .aroma-profil label.option {
        padding: 14px 12px;
        border-radius: 12px;
    }
    .aroma-profil label.option span {
        font-size: 15px; /* +1pt */
        line-height: 1.5; /* Interlignage plus aéré */
    }
    .aroma-profil .pill {
        padding: 3px 10px;
        font-size: 13px;
        margin: 2px;
    }
    .aroma-profil .warn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .aroma-profil .result {
        padding: 16px;
    }
    .aroma-profil .result h2 {
        font-size: 22px;
    }
    .aroma-profil .tips-section {
        padding: 14px;
    }
    .aroma-profil .tips-section h3 {
        font-size: 18px;
    }
    .aroma-profil .tips-section ul {
        padding-left: 16px;
        font-size: 14px;
    }
    .aroma-profil-footer {
        padding: 16px;
        font-size: 12px;
    }
    .aroma-profil .modal-content {
        padding: 24px;
    }
    .aroma-profil .modal-buttons {
        flex-direction: column;
    }
}

/* Très petit mobile (< 380px) */
@media (max-width: 380px) {
    .aroma-profil h1 {
        font-size: 20px;
    }
    .aroma-profil .logo-icon {
        width: 48px;
        height: 48px;
    }
    .aroma-profil .logo-icon svg {
        width: 26px;
        height: 26px;
    }
    .aroma-profil-header p {
        font-size: 13px;
    }
    .aroma-profil .card {
        padding: 14px;
    }
    .aroma-profil .q-title {
        font-size: 20px; /* +2pt */
    }
    .aroma-profil .q-desc {
        font-size: 15px; /* +2pt */
    }
    .aroma-profil .section-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
    .aroma-profil .section-icon svg {
        width: 18px;
        height: 18px;
    }
    .aroma-profil .options {
        gap: 12px; /* Espacement entre les options */
    }
    .aroma-profil label.option {
        padding: 12px 10px;
    }
    .aroma-profil label.option span {
        font-size: 14px; /* +1pt */
        line-height: 1.5; /* Interlignage plus aéré */
    }
    .aroma-profil input[type="radio"] {
        width: 18px;
        height: 18px;
    }
    .aroma-profil .btn {
        font-size: 14px;
        padding: 10px 14px;
    }
}

