/* === SAUVEGARDE PAGE - MODULAR DESIGN SYSTEM === */

/* Colors - STRICT BLACK / WHITE / RED */
:root {
    --text-dark: #000000;
    /* Pure Black */
    --text-body: #1a1a1a;
    /* Very Dark Gray for readability */
    --primary-red: #ef3e36;
    --bg-light: #ffffff;
    /* Pure White */
    --bg-placeholder: #f5f5f5;
    /* Light Gray neutral */
}

/* Utilities */
.text-red {
    color: var(--primary-red);
}

.text-white {
    color: white;
}

.text-gray-300 {
    color: #d4d4d4;
    /* Neutral Light Gray */
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem;
}

.bg-light {
    background-color: var(--bg-light);
}

/* 1. HERO SECTION */
.sauvegarde-hero {
    background-color: #000000;
    /* Removed blue gradient, keeping it simple or subtle dark gradient */
    background-image: linear-gradient(135deg, #1a1a1a, #000000);
    color: white;
    padding: 6rem 1rem 5rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e5e5e5;
    /* Light gray neutral */
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 2. INTRO SECTION */
.section-intro {
    padding: 4rem 1rem;
    text-align: center;
    background: white;
}

.section-intro h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.intro-text {
    font-size: 1.15rem;
    color: var(--text-body);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 3. MODULAR SECTIONS */
.module-section {
    padding: 5rem 1rem;
    border-top: 1px solid #f1f5f9;
}

.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.module-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.module-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin-top: 1rem;
}

.module-text p {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
}

.feature-list i {
    margin-right: 10px;
}

/* MEDIA PLACEHOLDERS (CRITICAL UX PATTERN) */
.media-placeholder {
    background-color: var(--bg-placeholder);
    width: 100%;
    aspect-ratio: 16/10;
    /* Standard video/photo ratio */
    border-radius: 12px;
    border: 3px dashed #d4d4d4;
    /* Neutral gray border */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #737373;
    /* Neutral dark gray text */
    text-align: center;
    transition: all 0.3s ease;
}

.media-placeholder:hover {
    border-color: var(--primary-red);
    color: black;
    background-color: #fafafa;
}

.media-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.media-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4. 3-2-1 RULE SECTION - LIGHT & MODERN */
.rule-321-section {
    background-color: white;
    padding: 5rem 1rem;
    color: var(--text-dark);
}

.rule-321-section .container {
    /* CLEAN RESET: No heavy black background */
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 1100px;
    /* Control width for readability */
}

/* Specific overrides for this section title to handle the White->Dark transition */
.rule-321-section .section-title {
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.rule-321-section p.text-center {
    color: var(--text-body);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    /* Spacing before grid */
}

/* Grid Layout */
.rule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;
    text-align: center;
}

/* Individual Item Styling - Elevated Label Style */
.rule-item {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    /* Permanent Shadow for "Raised/Etiquette" effect - All Around */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Higher Lift */
.rule-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* RED ACCENT BAR on top of each card */
.rule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-placeholder);
    /* Neutral by default */
    transition: background 0.3s ease;
}

.rule-item:hover::before {
    background: var(--primary-red);
}

/* Typography */
.rule-big-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
    color: var(--text-dark);
    /* Black number... */
}

/* ...Or Red Number? User asked for Red/Black/White. 
   Let's highlight the number in RED for hierarchy */
.rule-big-number {
    color: var(--primary-red);
    text-shadow: none;
    /* Clean flat design */
}

.rule-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.rule-item p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
}

/* 5. CTA SECTION */
.cta-section {
    padding: 6rem 1rem;
    text-align: center;
    background: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 3rem;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-red);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(239, 62, 54, 0.3);
}

.btn-primary-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(239, 62, 54, 0.4);
    background-color: #d12c24;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .module-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
        /* Put image on top on mobile? Or text on top? Standard is text -> img */
        /* Actually standard stack is usually Image then Text or Text then Image depending on flow. 
           Let's keep standard source order, but full width */
    }

    .rule-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}