/* =====================================================
   Styles principaux - Hydropulseur Dentaire Portable
   Thème : White / Silver / Soft Rose
   Mobile-first responsive design
   ===================================================== */

/* === Variables CSS === */
:root {
    --primary: #c4a4b5;
    --primary-dark: #a8849a;
    --primary-light: #e8d5de;
    --accent: #d4a5b8;
    --accent-dark: #b8899e;
    --silver: #c0c0c0;
    --silver-light: #e8e8e8;
    --chrome: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 30%, #f5f5f5 50%, #c0c0c0 70%, #e8e8e8 100%);

    --danger: #c75050;
    --success: #5a9e6f;
    --warning: #c9a84c;

    --text: #2d2d2d;
    --text-light: #7a7a7a;
    --text-muted: #a0a0a0;
    --bg: #ffffff;
    --bg-light: #f8f8f8;
    --bg-off: #f2f0f1;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 40px rgba(0,0,0,0.12);

    --transition: all 0.3s ease;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* === Layout === */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* === Icônes CSS (remplacement des emojis) === */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    flex-shrink: 0;
}

.icon--sm {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.icon--lg {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

.icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

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

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__logo svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.header__name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    letter-spacing: -0.3px;
}

.header__cta {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

.header__cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* === Hero Section === */
.hero {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, #f9f6f7 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.hero__subtitle {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-dark);
    margin-top: 4px;
    font-style: italic;
}

.hero__description {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 480px;
    line-height: 1.7;
}

.hero__price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero__price-current {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -1px;
}

.hero__price-current small {
    font-size: 16px;
    font-weight: 600;
}

.hero__price-old {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.hero__price-badge {
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.hero__trust span {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero__trust span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__image-wrapper {
    width: 100%;
    max-width: 380px;
}

.hero__product-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    object-fit: contain;
    background: #f9f6f7;
    padding: 12px;
}

.hero__floating-badge {
    position: absolute;
    top: 20px;
    right: 10px;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--shadow-md);
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

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

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn--full { width: 100%; }

.btn__arrow {
    transition: transform 0.3s;
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* === Section Titles === */
.section-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 15px;
}

/* === Benefits Section === */
.benefits {
    padding: 60px 0;
    background: var(--bg);
}

.benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.benefit-card {
    background: var(--bg);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.benefit-card__icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-card__icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-dark);
}

.benefit-card__content {
    flex: 1;
}

.benefit-card__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.benefit-card__text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* === Why Us Section === */
.why-us {
    padding: 60px 0;
    background: var(--bg-off);
}

.why-us__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.why-us__item {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    padding-left: 64px;
    border: 1px solid #eee;
}

.why-us__number {
    position: absolute;
    left: 20px;
    top: 24px;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-light);
}

.why-us__item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.why-us__item p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* === Testimonials === */
.testimonials {
    padding: 60px 0;
    background: var(--bg);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.testimonial-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid #f0f0f0;
}

.testimonial-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.testimonial-card__stars svg {
    width: 16px;
    height: 16px;
    fill: var(--warning);
}

.testimonial-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.testimonial-card__author strong {
    display: block;
    font-size: 13px;
}

.testimonial-card__author span {
    font-size: 12px;
    color: var(--text-muted);
}

/* === FAQ === */
.faq {
    padding: 60px 0;
    background: var(--bg-off);
}

.faq__list {
    max-width: 680px;
    margin: 0 auto;
}

.faq__item {
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: white;
    overflow: hidden;
}

.faq__question {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    color: var(--text);
}

.faq__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq__icon svg {
    width: 12px;
    height: 12px;
    fill: var(--text-light);
    transition: transform 0.3s;
}

.faq__item.active .faq__icon svg {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq__item.active .faq__answer {
    max-height: 200px;
}

.faq__answer p {
    padding: 0 20px 16px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* === Order Section === */
.order {
    padding: 60px 0;
    background: var(--bg);
}

.order__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.order__title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.order__subtitle {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 14px;
}

.order__product {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid #f0f0f0;
}

.order__product-image {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order__product-image svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-dark);
}

.order__product-details h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.order__product-details p {
    font-size: 12px;
    color: var(--text-muted);
}

.order__pricing {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid #f0f0f0;
}

.order__pricing h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.order__pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.order__pricing-row:last-child { border-bottom: none; }

.order__pricing-row small {
    color: var(--success);
    font-weight: 600;
}

/* === Form === */
.order__form {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.order__form-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.required { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196,164,181,0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger);
}

.form-error {
    display: none;
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

.form-error.visible { display: block; }

.form-group textarea {
    resize: vertical;
    min-height: 76px;
}

/* === Quantity Selector === */
.quantity-selector {
    display: flex;
    align-items: center;
    width: fit-content;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid #e0e0e0;
    background: var(--bg-light);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

.quantity-btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.quantity-btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quantity-selector input {
    width: 52px;
    height: 40px;
    text-align: center;
    border: 1.5px solid #e0e0e0;
    border-left: none;
    border-right: none;
    font-size: 15px;
    font-weight: 700;
    background: white;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* === Order Total === */
.order__total {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin: 16px 0;
    border: 1.5px solid var(--primary-light);
}

.order__total span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.order__total strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 4px 0;
    letter-spacing: -0.5px;
}

.order__total small {
    font-size: 11px;
    color: var(--text-muted);
}

.order__security {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.order__security svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}

/* === Footer === */
.footer {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: var(--text-muted);
}

.footer__links {
    margin-top: 8px;
}

.footer__links a {
    color: var(--primary-dark);
    margin: 0 8px;
}

/* === Success Message === */
.order-success {
    text-align: center;
    padding: 40px 20px;
}

.order-success__icon {
    width: 64px;
    height: 64px;
    background: #d5f5e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.order-success__icon svg {
    width: 32px;
    height: 32px;
    fill: var(--success);
}

.order-success h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--success);
}

.order-success p {
    color: var(--text-light);
    margin-bottom: 6px;
    font-size: 14px;
}

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

/* === Mobile small (< 400px) === */
@media (max-width: 400px) {
    .hero {
        padding: 70px 0 20px;
        min-height: auto;
    }
    .hero__grid {
        gap: 10px;
    }
    .hero__title {
        font-size: 18px;
    }
    .hero__subtitle {
        font-size: 13px;
    }
    .hero__description {
        font-size: 11px;
        margin-bottom: 14px;
        display: none;
    }
    .hero__price {
        margin-bottom: 14px;
    }
    .hero__price-current {
        font-size: 24px;
    }
    .hero__price-current small {
        font-size: 12px;
    }
    .hero__price-old {
        font-size: 12px;
    }
    .hero__price-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    .hero__trust {
        gap: 8px;
        margin-top: 10px;
    }
    .hero__trust span {
        font-size: 9px;
        gap: 3px;
    }
    .hero__trust span::before {
        width: 4px;
        height: 4px;
    }
    .hero__image-wrapper {
        max-width: 100%;
    }
    .hero__product-img {
        padding: 6px;
        border-radius: 10px;
    }
    .hero__floating-badge {
        top: 4px;
        right: 4px;
        font-size: 9px;
        padding: 4px 8px;
        border-radius: 30px;
    }
    .btn--large {
        padding: 10px 16px;
        font-size: 12px;
    }
    .btn__arrow {
        display: none;
    }
    .section-title {
        font-size: 20px;
    }
    .section-subtitle {
        font-size: 12px;
        margin-bottom: 24px;
    }
    .benefits {
        padding: 36px 0;
    }
    .why-us {
        padding: 36px 0;
    }
    .testimonials {
        padding: 36px 0;
    }
    .faq {
        padding: 36px 0;
    }
    .order {
        padding: 36px 0;
    }
    .order__form {
        padding: 16px;
    }
    .order__form-title {
        font-size: 15px;
    }
    .order__total strong {
        font-size: 24px;
    }
    .benefit-card {
        padding: 14px;
        gap: 10px;
    }
    .benefit-card__icon {
        width: 36px;
        height: 36px;
    }
    .benefit-card__icon svg {
        width: 18px;
        height: 18px;
    }
    .benefit-card__title {
        font-size: 13px;
    }
    .benefit-card__text {
        font-size: 11px;
    }
    .why-us__item {
        padding: 14px 14px 14px 48px;
    }
    .why-us__number {
        font-size: 20px;
        left: 12px;
    }
}

/* === Mobile (400px - 640px) === */
@media (min-width: 400px) and (max-width: 640px) {
    .hero {
        padding: 70px 0 24px;
        min-height: auto;
    }
    .hero__grid {
        gap: 14px;
    }
    .hero__title {
        font-size: 22px;
    }
    .hero__subtitle {
        font-size: 14px;
    }
    .hero__description {
        font-size: 12px;
        margin-bottom: 16px;
    }
    .hero__image-wrapper {
        max-width: 100%;
    }
    .hero__product-img {
        padding: 8px;
        border-radius: 12px;
    }
    .hero__floating-badge {
        top: 6px;
        right: 6px;
        font-size: 10px;
        padding: 5px 10px;
    }
    .btn--large {
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* === Tablet (640px - 899px) === */
@media (min-width: 640px) {
    .container { padding: 0 24px; }
    .hero__grid {
        gap: 32px;
    }
    .hero__title { font-size: 38px; }
    .hero__image-wrapper {
        max-width: 400px;
    }
    .benefits__grid { grid-template-columns: repeat(2, 1fr); }
    .why-us__grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
    .order__wrapper { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 30px; }
}

/* === Desktop (>= 900px) === */
@media (min-width: 900px) {
    .container { padding: 0 32px; }
    .hero { padding: 100px 0 60px; }
    .hero__grid {
        grid-template-columns: 55% 45%;
        gap: 40px;
    }
    .hero__title { font-size: 48px; }
    .hero__image-wrapper {
        max-width: 440px;
    }
    .benefits__grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
    .section-title { font-size: 34px; }
}

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__content,
.hero__image {
    animation: fadeInUp 0.6s ease forwards;
}

.hero__image { animation-delay: 0.15s; }

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196,164,181,0.3); }
    50% { box-shadow: 0 0 0 10px rgba(196,164,181,0); }
}

.hero .btn--primary {
    animation: subtlePulse 2.5s infinite;
}
