/* ===== shared.css — mini-audit WEBCOD (nouvelle charte) ===== */

:root {
    --cream:      #F2EFE8;
    --cream-soft: #FAF8F4;
    --cream-warm: #E8E5DC;
    --line:       #DDD8CD;
    --ink:        #171A21;
    --ink-light:  #5B6470;
    --navy:       #1E3A5F;
    --coral:      #DB6545;
    --coral-dark: #A8431F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ===== MISE EN PAGE ===== */
.a4-page {
    width: 210mm;
    max-width: 100%;
    min-height: 297mm;
    margin: 0 auto;
    padding: 20mm 18mm;
    background: var(--cream);
}

@media screen and (max-width: 800px) {
    .a4-page { padding: 6vw 5vw; min-height: auto; }
}

/* ===== LOGO ===== */
.ma-logo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--ink);
    text-decoration: none;
    transition: opacity .2s;
}
.ma-logo:hover { opacity: .75; }
.ma-logo span { color: var(--coral); }

.ma-header-label {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-light);
}

/* ===== TITRE ===== */
.ma-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(1.3rem, 4vw, 1.75rem);
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 8px;
}
.ma-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: .875rem;
    color: var(--ink-light);
}

/* ===== SÉPARATEUR ===== */
.separator-line {
    height: 2px;
    background: linear-gradient(90deg, var(--coral) 0%, var(--navy) 100%);
    width: 100%;
    border: none;
    margin: 0;
}

/* ===== CHECKLIST ===== */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.checklist-item:last-child { border-bottom: none; }

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line);
    background: white;
    border-radius: 2px;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.checkbox-custom:hover { border-color: var(--coral); }
.checkbox-custom.checked { border-color: var(--coral); background: var(--coral); }
.checkbox-custom svg { width: 12px; height: 12px; opacity: 0; transition: opacity .2s ease; }
.checkbox-custom.checked svg { opacity: 1; }

.item-number {
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    color: var(--coral);
    min-width: 24px;
    flex-shrink: 0;
    padding-top: 1px;
}

.item-text {
    font-family: 'Inter', sans-serif;
    font-size: .875rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.55;
    flex: 1;
}

/* ===== BOÎTE RÉSULTAT ===== */
.result-box {
    background: var(--cream-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--coral);
    border-radius: 0 3px 3px 0;
    padding: 18px 22px;
    margin-top: 24px;
}

.result-cta {
    display: inline-block;
    margin-top: 14px;
    font-family: 'Inter', sans-serif;
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 9px 20px;
    border: 1px solid var(--coral);
    color: var(--coral);
    border-radius: 2px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.result-cta:hover { background: var(--coral); color: white; }

/* ===== SCORE ===== */
.score-display {
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--coral);
}

/* ===== FOOTER ===== */
.ma-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ma-footer-note {
    font-size: .75rem;
    color: var(--ink-light);
    text-align: center;
    line-height: 1.5;
}
.ma-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: .75rem;
    color: var(--ink-light);
}
.ma-footer-bottom a {
    color: var(--ink-light);
    text-decoration: none;
    transition: color .2s;
}
.ma-footer-bottom a:hover { color: var(--coral); }
.ma-footer-copy { font-size: .72rem; color: var(--ink-light); opacity: .6; }

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

.checklist-item { animation: fadeInUp .4s ease forwards; opacity: 0; }
.checklist-item:nth-child(1)  { animation-delay: .05s; }
.checklist-item:nth-child(2)  { animation-delay: .10s; }
.checklist-item:nth-child(3)  { animation-delay: .15s; }
.checklist-item:nth-child(4)  { animation-delay: .20s; }
.checklist-item:nth-child(5)  { animation-delay: .25s; }
.checklist-item:nth-child(6)  { animation-delay: .30s; }
.checklist-item:nth-child(7)  { animation-delay: .35s; }
.checklist-item:nth-child(8)  { animation-delay: .40s; }
.checklist-item:nth-child(9)  { animation-delay: .45s; }
.checklist-item:nth-child(10) { animation-delay: .50s; }

@media (prefers-reduced-motion: reduce) {
    .checklist-item { animation: none; opacity: 1; }
}
