/* ============================================
   FUNC-OVERRIDE — Override feature-page.css
   pour les pages Fonctionnalités uniquement
   Scoped under body.fn-page

   Pages : autodestruction, protection-code,
   journalisation, suppression-post-envoi,
   retours-securises, empreinte, validation,
   analyse-vulnerabilite, detection-regex
   ============================================ */

/* ============================================
   HERO — Centré, fond navy, icône au lieu de photo
   ============================================ */
.fn-page .fp-hero {
    background: linear-gradient(165deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.fn-page .fp-hero::before {
    background: radial-gradient(ellipse at 50% 50%, rgba(238, 101, 37, 0.05) 0%, transparent 60%);
}

.fn-page .fp-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.fn-page .fp-hero-content {
    max-width: 700px;
    text-align: center;
}

.fn-page .fp-hero-content h1 {
    color: white;
    font-size: 3.2rem;
}

.fn-page .fp-hero-content h1 span {
    color: var(--se-orange);
}

.fn-page .fp-hero-content .lead,
.fn-page .fp-hero-content p {
    color: rgba(255, 255, 255, 0.6);
}

.fn-page .fp-hero-buttons {
    justify-content: center;
}

.fn-page .fp-hero-buttons .btn-secondary {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.fn-page .fp-hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Trust indicators — adapt for dark hero */
.fn-page .fp-hero-trust {
    justify-content: center;
}

.fn-page .fp-hero-trust-item {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.fn-page .fp-hero-trust-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

.fn-page .fp-hero-trust-item i {
    color: var(--se-orange);
    opacity: 0.7;
}

.fn-page .fp-hero-trust-sep {
    color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.fn-page .fp-hero-trust-more {
    color: var(--se-orange);
    opacity: 0.8;
}

.fn-page .fp-hero-trust-more:hover {
    opacity: 1;
}

/* Cacher la photo hero, montrer un badge stylisé */
.fn-page .fp-hero-visual {
    display: none;
}

/* ============================================
   CONTEXT — Fond offwhite, mise en page plus aérée
   ============================================ */
.fn-page .fp-context-section {
    background: var(--se-offwhite);
}

/* ============================================
   SOLUTION CARDS — Bordure gauche orange, pas de shadow hover
   ============================================ */
.fn-page .fp-solution-card {
    border-radius: 0;
    border: none;
    border-left: 3px solid transparent;
    box-shadow: none;
    background: var(--se-white);
    border-bottom: 1px solid var(--se-gray-border);
    padding: 28px 30px;
}

.fn-page .fp-solution-card:hover {
    transform: none;
    box-shadow: none;
    border-left-color: var(--se-orange);
    background: var(--se-offwhite);
}

.fn-page .fp-solution-card h3 i {
    border-radius: 0;
}

.fn-page .fp-solution-card:hover h3 i {
    color: var(--se-orange-dark);
    font-weight: 900;
}

/* ============================================
   PROCESS STEPS — Carrés au lieu de cercles,
   style homepage steps
   ============================================ */
.fn-page .fp-step-number {
    border-radius: 0;
    background: var(--se-navy);
    box-shadow: none;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
}

.fn-page .fp-process-step::after {
    background: var(--se-navy);
    opacity: 0.2;
}

/* ============================================
   FEATURE CARDS — Flat, accent bar top
   ============================================ */
.fn-page .fp-feature-card {
    border-radius: 0;
    border: none;
    border-top: 3px solid transparent;
    background: var(--se-white);
    box-shadow: var(--shadow-sm);
}

.fn-page .fp-feature-card:hover {
    border-top-color: var(--se-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   ADVANTAGES — Carrés au lieu de rounded
   ============================================ */
.fn-page .fp-advantage-card {
    border-radius: 0;
}

/* ============================================
   DARK SECTION — Plus subtil
   ============================================ */
.fn-page .fp-dark-section {
    background: var(--se-navy);
}

.fn-page .fp-dark-item {
    border-radius: 0;
}

.fn-page .fp-dark-badge {
    border-radius: 0;
}

/* ============================================
   USE CASES — Flat, border accent
   ============================================ */
.fn-page .fp-usecase-card {
    border-radius: 0;
    border: 1px solid var(--se-gray-border);
    box-shadow: none;
}

.fn-page .fp-usecase-card:hover {
    border-color: var(--se-orange);
    box-shadow: var(--shadow-md);
}

/* ============================================
   SECURITY CARD — Carré
   ============================================ */
.fn-page .se-security-card {
    border-radius: 0;
}

.fn-page .se-security-feature {
    border-radius: 0;
}

.fn-page .fp-highlight {
    border-radius: 0;
}

/* ============================================
   CTA — Navy au lieu d'orange
   ============================================ */
.fn-page .fp-cta-section {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
}

.fn-page .fp-cta-section::before {
    background: radial-gradient(circle, rgba(238, 101, 37, 0.08) 0%, transparent 70%);
}

.fn-page .fp-btn-white {
    background: var(--se-orange);
    color: white;
    border-radius: 0;
    box-shadow: none;
}

.fn-page .fp-btn-white:hover {
    background: var(--se-orange-dark);
    color: white;
    box-shadow: var(--shadow-md);
}

.fn-page .fp-btn-ghost {
    border-radius: 0;
    border-color: rgba(255, 255, 255, 0.3);
}

.fn-page .fp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   HERO BADGE (not needed in func pages)
   ============================================ */
.fn-page .fp-hero-badge {
    border-radius: 0;
}

/* ============================================
   SPECIFICITY FIX — design-system.css resets:
     body:not(.stretched) h1..h6 { margin: 0 }
     body:not(.stretched) p { margin: 0 0 16px 0 }
   Both have specificity 0,1,2 which overrides
   feature-page.css rules at 0,1,1.
   These re-assert the correct intended values.
   ============================================ */

/* --- Headings --- */
.fn-page .fp-hero-content h1 {
    margin-bottom: var(--space-md);
}

.fn-page .fp-section-title h2 {
    margin-bottom: var(--space-sm);
}

.fn-page .fp-context-content h2 {
    margin-bottom: var(--space-md);
}

.fn-page .se-security-card h3 {
    margin-bottom: var(--space-lg);
}

.fn-page .fp-usecase-card h4,
.fn-page .fp-solution-card h3,
.fn-page .fp-feature-card h3 {
    margin-bottom: var(--space-xs);
}

/* --- Paragraphs --- */
.fn-page .fp-section-title p {
    margin: 0 auto;
    max-width: 700px;
}

.fn-page .fp-context-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.fn-page .fp-highlight p {
    margin: 0;
}

.fn-page .fp-hero-content .lead {
    margin-bottom: var(--space-sm);
}

.fn-page .fp-hero-content p {
    margin-bottom: var(--space-lg);
}

/* Upload info — restore spacing under button */
.fn-page .upload-info {
    margin-top: 16px;
}

/* ============================================
   SECTION TITLE — pas de underline gradient
   ============================================ */
.fn-page .fp-section-title h2::after {
    background: var(--se-orange);
    width: 50px;
    height: 3px;
    border-radius: 0;
}

/* Security card in context — tighter feature gap */
.fn-page .se-security-features {
    gap: 10px;
}

.fn-page .se-security-feature {
    padding: 10px 15px;
}

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
    .fn-page .fp-hero-content h1 {
        font-size: 2.6rem;
    }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
    .fn-page .fp-hero {
        padding: 60px 0 50px;
    }

    .fn-page .fp-hero-content h1 {
        font-size: 2rem;
    }

    .fn-page .fp-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
