/* ===========================================
   ANALYSE EMAIL - Thème Orange Ambre Investigation
   =========================================== */

:root {
    --bg-dark: #1a0f00;
    --bg-medium: #2d1a00;
    --text-primary: #e7eef6;
    --text-secondary: #b8c5d6;
    --accent-orange: #ff8c00;
    --accent-amber: #ffb347;
    --border: rgba(255, 140, 0, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: linear-gradient(-45deg, #1a0f00, #2d1a00, #4d2600, #2d1a00);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.icon-color {
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
}

body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.back-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 140, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--accent-amber);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.back-btn:hover {
    background: rgba(255, 140, 0, 0.25);
    transform: translateX(-5px);
    box-shadow: 0 4px 20px rgba(255, 179, 71, 0.5);
}

h1 {
    display: block;
    text-align: center;
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff8c00 0%, #ffb347 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 10px;
    margin: 0 auto 40px;
    width: fit-content;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 1.6rem;
    border-left: 4px solid var(--accent-orange);
    padding-left: 15px;
    color: var(--accent-orange);
    margin: 40px 0 20px;
    font-weight: 700;
}

h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 30px 0 15px;
    font-weight: 600;
}

p {
    margin: 0 0 18px;
    text-align: justify;
    color: var(--text-secondary);
    line-height: 1.8;
}

p.introduction,
p.analyse,
p.conclusion,
p.context,
p.email_analys,
p.image_analys,
p.logic_analys,
p.point_start_attack {
    background: rgba(255, 140, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--accent-orange);
}

img {
    display: block;
    margin: 30px auto;
    max-width: 75%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

figure {
    text-align: center;
    margin: 35px auto;
}

figcaption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--accent-amber);
    text-align: center;
    font-style: italic;
}

a {
    color: var(--accent-orange);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-amber);
}

ul,
ol {
    margin: 15px 0 25px 45px;
    color: var(--text-primary);
}

ul li,
ol li {
    margin-bottom: 8px;
}

.styled-ol {
    list-style: none;
    counter-reset: item;
}

.styled-ol>li {
    counter-increment: item;
    margin-bottom: 20px;
}

.styled-ol>li::before {
    content: counter(item) ". ";
    color: var(--accent-amber);
    font-weight: bold;
}

.item-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent-orange);
}

.image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
}

.image-row img {
    max-width: 45%;
    margin: 0;
}

@media (max-width: 900px) {
    body {
        padding: 30px 25px;
    }

    img {
        max-width: 90%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .image-row {
        flex-direction: column;
        align-items: center;
    }

    .image-row img {
        max-width: 80%;
    }
}