/* ===========================================
   SURVEILLANCE TEMPÉRATURE - Thème Rouge-Orange Chaleur
   =========================================== */

:root {
    --bg-dark: #1a0a00;
    --bg-medium: #2d1400;
    --text-primary: #e7eef6;
    --text-secondary: #b8c5d6;
    --accent-red-orange: #ff4500;
    --accent-fire: #ff6347;
    --border: rgba(255, 69, 0, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: linear-gradient(-45deg, #1a0a00, #2d1400, #4d1e00, #2d1400);
    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, 69, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--accent-fire);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.back-btn:hover {
    background: rgba(255, 69, 0, 0.25);
    transform: translateX(-5px);
    box-shadow: 0 4px 20px rgba(255, 99, 71, 0.5);
}

h1 {
    display: block;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff4500 0%, #ff6347 50%, #ff7f50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 10px;
    margin: 0 auto 40px;
    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-red-orange);
    padding-left: 15px;
    color: var(--accent-red-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.specification,
p.material_use,
p.electronic_schema,
p.programming,
p.simulation,
p.demonstration,
p.updade {
    background: rgba(255, 69, 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-red-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-fire);
    text-align: center;
    font-style: italic;
}

video {
    display: block;
    margin: 30px auto;
    max-width: 75%;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

a {
    color: var(--accent-red-orange);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-fire);
}

ul,
ol {
    margin: 15px 0 25px 45px;
    color: var(--text-primary);
}

ul li,
ol li {
    margin-bottom: 8px;
}

/* --- Nouvelles Cartes de Fonctionnalités --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px auto;
    max-width: 900px;
    justify-content: center;
}

.feature-card {
    background: rgba(255, 69, 0, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--accent-red-orange);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 69, 0, 0.12);
    box-shadow: 0 15px 35px rgba(255, 69, 0, 0.2);
    border-color: var(--accent-fire);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 69, 0, 0.05) 100%);
    pointer-events: none;
}

.feature-card h4 {
    color: var(--accent-red-orange);
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card h4 span {
    font-size: 1.5rem;
}

.feature-card ul {
    margin: 10px 0 0 20px;
    list-style-type: none;
    padding: 0;
}

.feature-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-fire);
    font-weight: bold;
}

@media (max-width: 900px) {
    body {
        padding: 30px 25px;
    }

    img {
        max-width: 90%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}