/* =================================================
   ROOT / DESIGN SYSTEM
================================================= */

:root {
    --primary: #ca9e67;
    --primary-dark: #b17f4a;
    --text-dark: #1a171b;
    --text-muted: #666;
    --bg-light: #f8f7f5;
    --bg-white: #ffffff;
    --danger: #c0392b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;

    --shadow-soft: 0 15px 40px rgba(0,0,0,0.05);
    --shadow-medium: 0 25px 60px rgba(0,0,0,0.08);
}


/* =================================================
   BASE
================================================= */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 600;
    letter-spacing: -0.3px;
}

p {
    margin-bottom: 1.2rem;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 2rem 1.2rem;
}

.section {
    margin: 5rem 0;
}


/* =================================================
   HEADER
================================================= */

header {
    background: var(--primary);
    color: white;
    padding: 3rem 1rem 2.5rem 1rem;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

nav {
    margin-top: 1.8rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1.4rem;
    font-weight: 500;
    transition: 0.25s ease;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: white;
    transition: 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}


/* =================================================
   CARDS
================================================= */

.card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}


/* =================================================
   HERO
================================================= */

.hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
}


/* =================================================
   BUTTONS
================================================= */

.button,
.premium-button {
    display: inline-block;
    padding: 1.1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    color: white;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: all 0.25s ease;
}

.button:hover,
.premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(202,158,103,0.35);
}

.premium-button {
    width: 100%;
    font-size: 1.05rem;
}


/* =================================================
   GRID
================================================= */

.pricing-grid {
    display: grid;
    gap: 2rem;
}

@media(min-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =================================================
   FOOTER
================================================= */

.site-footer {
    background: var(--primary);
    color: white;
    padding: 4rem 1rem 3rem 1rem;
    margin-top: 6rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
}

.site-footer a {
    color: white;
    text-decoration: none;
    opacity: 0.95;
}

.site-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.85;
}


/* =================================================
   ANALYSE SECTION
================================================= */

.analyse-section {
    background: linear-gradient(180deg, var(--bg-light), var(--bg-white));
    padding: 6rem 1rem;
}

.analyse-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.accent-line {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
    margin-bottom: 2rem;
}

.analyse-title {
    font-size: 2rem;
}

.analyse-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
}


/* =================================================
   FORM
================================================= */

.analyse-form {
    margin-top: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-field {
    position: relative;
}

.form-field.full {
    grid-column: span 2;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 1.4rem 1rem 0.7rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: #fafafa;
    transition: all 0.25s ease;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(202,158,103,0.15);
    outline: none;
}

.form-field label {
    position: absolute;
    top: 1.2rem;
    left: 1rem;
    font-size: 0.9rem;
    color: #777;
    transition: 0.2s ease;
    pointer-events: none;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
    top: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary);
}

.recaptcha-wrapper {
    margin-top: 2.5rem;
}


/* =================================================
   SUCCESS
================================================= */

.modal-success {
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeInUp 0.4s ease forwards;
}

.success-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 15px 40px rgba(202,158,103,0.35);
}

.success-message {
    padding: 1.8rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.success-message.success {
    background: #f6f4f1;
    border-left: 4px solid var(--primary);
}

.success-message.error {
    background: #fff5f5;
    border-left: 4px solid var(--danger);
}


/* =================================================
   MODAL
================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

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

.modal-content {
    background: var(--bg-white);
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    border-radius: var(--radius-lg);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
}

body.modal-open {
    position: fixed;
    width: 100%;
}


/* =================================================
   ANIMATION
================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =================================================
   MOBILE
================================================= */

@media (max-width: 900px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field.full {
        grid-column: span 1;
    }

    .analyse-wrapper {
        padding: 2rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    nav a {
        margin: 0 0.8rem;
    }
}
