
/* ============================================================
   AMELI SCAMPAGE — Design clone officiel
   Pixel-perfect sur les couleurs/typo Ameli
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --am-blue: #005eb8;
    --am-blue-dark: #004a8d;
    --am-blue-light: #e6f0fa;
    --am-green: #2e7d32;
    --am-red: #c62828;
    --am-red-bg: #ffebee;
    --am-orange: #e65100;
    --am-orange-bg: #fff3e0;
    --am-gray: #666;
    --am-gray-light: #f5f5f5;
    --am-border: #ddd;
    --am-radius: 6px;
    --am-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --am-transition: 0.2s ease;
}

body {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #f0f2f5;
    -webkit-font-smoothing: antialiased;
}

/* HEADER */
.am-header {
    background: #fff;
    border-bottom: 3px solid var(--am-blue);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.am-header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.am-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.am-logo__txt {
    font-size: 18px;
    font-weight: 700;
    color: var(--am-blue);
}
.am-header__right {
    font-size: 13px;
    color: var(--am-green);
    font-weight: 600;
}
.am-nav {
    background: var(--am-blue);
    padding: 0 20px;
}
.am-nav a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--am-transition);
}
.am-nav a:hover { background: var(--am-blue-dark); }

/* STEPS */
.am-steps {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 0 20px;
}
.am-steps__bar {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.am-steps__bar::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: var(--am-border);
    z-index: 0;
}
.am-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}
.am-step__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--am-border);
    color: var(--am-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    transition: all var(--am-transition);
}
.am-step__label {
    font-size: 12px;
    color: var(--am-gray);
    text-align: center;
    font-weight: 500;
}
.am-step.completed .am-step__num {
    background: var(--am-blue);
    color: #fff;
}
.am-step.completed .am-step__label {
    color: var(--am-blue);
    font-weight: 600;
}
.am-step.active .am-step__num {
    background: var(--am-blue);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0,94,184,0.2);
    transform: scale(1.1);
}
.am-step.active .am-step__label {
    color: var(--am-blue);
    font-weight: 700;
}

/* MAIN */
.am-main {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px 40px;
}
.am-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ALERTS */
.am-alert {
    padding: 16px 20px;
    border-radius: var(--am-radius);
    border-left: 5px solid transparent;
    font-size: 14px;
}
.am-alert--danger {
    background: var(--am-red-bg);
    border-left-color: var(--am-red);
    color: var(--am-red);
}
.am-alert--danger h2 {
    font-size: 18px;
    margin-bottom: 6px;
}
.am-alert--danger p {
    margin-bottom: 4px;
}
.am-alert--error {
    background: #fff3cd;
    border-left-color: #e6a700;
    color: #8a6d14;
}
.am-alert--error ul {
    margin: 8px 0 0 20px;
}

/* CARDS */
.am-card {
    background: #fff;
    padding: 28px 30px;
    border-radius: var(--am-radius);
    box-shadow: var(--am-shadow);
    border: 1px solid var(--am-border);
}
.am-card h2 {
    font-size: 22px;
    color: var(--am-blue);
    margin-bottom: 16px;
    font-weight: 700;
}
.am-card h3 {
    font-size: 17px;
    color: #333;
    margin: 20px 0 10px;
    font-weight: 600;
}
.am-card p {
    color: #444;
    margin-bottom: 12px;
}
.am-card ul {
    margin: 10px 0 10px 24px;
    color: #444;
}
.am-card ul li {
    margin-bottom: 6px;
}
.am-card--success {
    text-align: center;
}

/* SUCCESS */
.am-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--am-green);
    color: #fff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* BADGES */
.am-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0;
}
.am-badge--secure {
    background: #e8f5e9;
    color: var(--am-green);
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}
.am-badge--info {
    background: var(--am-blue-light);
    color: var(--am-blue);
    font-family: monospace;
    font-size: 14px;
    padding: 10px 20px;
}

/* FORMS */
.am-form-group {
    margin-bottom: 16px;
}
.am-form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}
.am-form-group small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 3px;
}
.am-required { color: var(--am-red); }
.am-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    background: #fff;
    transition: border-color var(--am-transition), box-shadow var(--am-transition);
    font-family: inherit;
}
.am-input:focus {
    outline: none;
    border-color: var(--am-blue);
    box-shadow: 0 0 0 3px rgba(0,94,184,0.12);
}
.am-input::placeholder { color: #bbb; }

.am-row {
    display: flex;
    gap: 16px;
}
.am-col {
    flex: 1;
}

.am-fieldset {
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    padding: 20px 16px 8px;
    margin-bottom: 20px;
}
.am-fieldset legend {
    font-weight: 700;
    font-size: 16px;
    color: var(--am-blue);
    padding: 0 8px;
}

.am-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--am-border);
}

.am-footnote {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
    font-style: italic;
}

/* BUTTONS */
.am-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--am-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--am-transition);
    font-family: inherit;
    line-height: 1.4;
}
.am-btn--primary {
    background: var(--am-blue);
    color: #fff;
}
.am-btn--primary:hover {
    background: var(--am-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,94,184,0.3);
}
.am-btn--outline {
    background: #fff;
    color: var(--am-blue);
    border: 1px solid var(--am-blue);
}
.am-btn--outline:hover {
    background: var(--am-blue-light);
}
.am-btn--lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* SUMMARY */
.am-summary {
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    margin-bottom: 12px;
}
.am-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.am-summary__row:last-child { border-bottom: none; }
.am-summary__row span:first-child {
    font-weight: 600;
    color: #555;
}
.am-summary__row span:last-child {
    color: #333;
    font-family: monospace;
}

/* FOOTER */
.am-footer {
    background: #fff;
    border-top: 2px solid var(--am-border);
    padding: 30px 20px;
    margin-top: 40px;
}
.am-footer__cols {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 20px;
    font-size: 13px;
    color: #666;
}
.am-footer__cols a {
    color: #666;
    text-decoration: none;
}
.am-footer__cols a:hover { color: var(--am-blue); text-decoration: underline; }
.am-footer__copy {
    text-align: center;
    font-size: 12px;
    color: #999;
    max-width: 1100px;
    margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .am-header__top { flex-direction: column; gap: 8px; }
    .am-nav { display: none; }
    .am-card { padding: 20px 16px; }
    .am-row { flex-direction: column; }
    .am-form-footer { flex-direction: column; gap: 12px; }
    .am-footer__cols { flex-direction: column; gap: 16px; }
    .am-steps__bar::before { left: 20px; right: 20px; }
}