@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;600&display=swap');

/* ===== VARIABLES ===== */
:root {
    --rose-pale: #fdf0f3;
    --rose-pastel: #f9c8d5;
    --rose-moyen: #e8889a;
    --rose-soutenu: #c45c74;
    --rose-fonce: #8b3a50;
    --blanc: #ffffff;
    --texte: #3d2b2b;
    --texte-leger: #9a7a7a;
    --bordure: #f5d5dc;
    --ombre: rgba(180, 100, 120, 0.12);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #fdf0f3 0%, #fce8ed 50%, #f9e0e8 100%);
    min-height: 100vh;
    color: var(--texte);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: 2.2rem;
    color: var(--rose-fonce);
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    color: var(--rose-soutenu);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.1rem;
    color: var(--rose-soutenu);
    margin-bottom: 10px;
}

p {
    line-height: 1.7;
    color: var(--texte-leger);
}

/* ===== NAVIGATION ===== */
nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bordure);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px var(--ombre);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: var(--rose-fonce);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--texte-leger);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--rose-soutenu);
}

/* ===== CONTENEUR PRINCIPAL ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container-sm {
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ===== CARDS ===== */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid var(--bordure);
    box-shadow: 0 8px 40px var(--ombre);
    padding: 36px;
    margin-bottom: 24px;
}

.card-sm {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    border: 1px solid var(--bordure);
    padding: 24px;
    margin-bottom: 16px;
}

/* ===== FORMULAIRES ===== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-soutenu);
    font-weight: 600;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--bordure);
    border-radius: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--texte);
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--rose-moyen);
    box-shadow: 0 0 0 3px rgba(232, 136, 154, 0.15);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rose-moyen) 0%, var(--rose-soutenu) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(196, 92, 116, 0.35);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(196, 92, 116, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--rose-soutenu);
    border: 1.5px solid var(--bordure);
    width: 100%;
}

.btn-secondary:hover {
    background: var(--rose-pale);
}

.btn-danger {
    background: transparent;
    color: #c45c5c;
    border: 1.5px solid #f5d5d5;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-danger:hover {
    background: #fff5f5;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    color: #c05050;
}

.alert-success {
    background: #f5fff8;
    border: 1px solid #c6f5d5;
    color: #3a8a55;
}

.alert-info {
    background: var(--rose-pale);
    border: 1px solid var(--bordure);
    color: var(--rose-fonce);
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.badge-fluide {
    background: #e8f5f0;
    color: #3a8a6a;
}

.badge-epais {
    background: #f5f0e8;
    color: #8a6a3a;
}

.badge-pastel {
    background: var(--rose-pale);
    color: var(--rose-soutenu);
}

.badge-sature {
    background: var(--rose-pastel);
    color: var(--rose-fonce);
}

/* ===== SÉPARATEUR ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bordure);
}

.divider span {
    font-size: 12px;
    color: var(--texte-leger);
    letter-spacing: 1px;
}

/* ===== UPLOAD PHOTO ===== */
.upload-zone {
    border: 2px dashed var(--bordure);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--rose-pale);
}

.upload-zone:hover {
    border-color: var(--rose-moyen);
    background: #fde8ed;
}

.upload-zone.active {
    border-color: var(--rose-soutenu);
    background: #fde8ed;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

/* ===== COLOR SWATCHES ===== */
.swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: inline-block;
}

.color-result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--bordure);
    margin-bottom: 12px;
}

.color-values {
    font-size: 13px;
    color: var(--texte-leger);
    line-height: 1.8;
}

/* ===== ÉTAPES ===== */
.steps {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--bordure);
}

.step.active {
    background: linear-gradient(90deg, var(--rose-moyen), var(--rose-soutenu));
}

.step.done {
    background: var(--rose-moyen);
}

/* ===== FOND DE TEINT GRID ===== */
.foundation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.foundation-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--bordure);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.foundation-card:hover {
    border-color: var(--rose-moyen);
    box-shadow: 0 4px 20px var(--ombre);
    transform: translateY(-2px);
}

.foundation-brand {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--texte-leger);
    margin-bottom: 4px;
}

.foundation-shade {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--rose-fonce);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 30px;
    font-size: 12px;
    color: var(--texte-leger);
    letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    nav {
        padding: 14px 20px;
    }

    .nav-links {
        display: none;
    }

    h1 {
        font-size: 1.6rem;
    }

    .card {
        padding: 24px;
    }

    .foundation-grid {
        grid-template-columns: 1fr 1fr;
    }
}