/* ============================================================
 * SEO Landing Design System — Seecret.it
 * Used for: alternative-*, comment-*, partager-*, envoyer-*,
 *           api-partage-*, chiffrement-aes-*, partage-mot-de-passe-entreprise
 *
 * Style : Minimalisme moderne + glassmorphism subtil
 * Palette : Bleu #4ac4f3 (brand) + Dark #212529
 * ============================================================ */

:root {
    --seo-primary: #4ac4f3;
    --seo-primary-dark: #2ba0d4;
    --seo-primary-soft: rgba(74, 196, 243, 0.08);
    --seo-primary-glow: rgba(74, 196, 243, 0.18);
    --seo-dark: #212529;      /* matche le bg-dark Bootstrap utilisé par le footer */
    --seo-dark-soft: #2d3338;  /* version légèrement plus claire pour les blocs code */
    --seo-text: #1a202c;
    --seo-text-muted: #64748b;
    --seo-bg: #ffffff;
    --seo-bg-soft: #f8fafc;
    --seo-bg-grad: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    --seo-border: rgba(15, 23, 42, 0.08);
    --seo-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --seo-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 10px 20px -5px rgba(15, 23, 42, 0.08);
    --seo-shadow-lg: 0 20px 50px -10px rgba(15, 23, 42, 0.12);
    --seo-shadow-glow: 0 0 0 1px rgba(74, 196, 243, 0.15), 0 8px 24px -8px rgba(74, 196, 243, 0.35);
    --seo-radius: 14px;
    --seo-radius-lg: 22px;
    --seo-radius-xs: 8px;
    --seo-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
 * Container principal des pages SEO
 * ============================================================ */
.seo-page {
    color: var(--seo-text);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.seo-page section,
.seo-page .seo-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    position: relative;
}

.seo-page .seo-section--soft {
    background: var(--seo-bg-soft);
}

.seo-page .seo-section--dark {
    background: var(--seo-dark);
    color: #e2e8f0;
}

.seo-page .seo-section--dark h1,
.seo-page .seo-section--dark h2,
.seo-page .seo-section--dark h3 {
    color: #fff;
}

/* ============================================================
 * HERO
 * ============================================================ */
/* Hauteur de la navbar fixed-top utilisée pour réserver l'espace en haut du hero */
:root {
    --seo-navbar-h: 90px;
}

.seo-page > section.seo-hero,
.seo-hero {
    /* navbar fixed-top + respiration. !important pour bloquer toute surcharge Bootstrap */
    padding-top: calc(var(--seo-navbar-h) + clamp(1.5rem, 6vw, 4rem)) !important;
    padding-bottom: clamp(3rem, 6vw, 5rem) !important;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, var(--seo-primary-glow), transparent 70%),
        var(--seo-bg);
    overflow: hidden;
    position: relative;
}

.seo-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--seo-primary-soft);
    color: var(--seo-primary-dark);
    border: 1px solid rgba(74, 196, 243, 0.2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.seo-hero__badge--danger {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.seo-hero__badge--warning {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.2);
}

.seo-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    color: var(--seo-text);
}

.seo-hero__lead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--seo-text-muted);
    margin-bottom: 2rem;
    max-width: 36em;
}

.seo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.seo-hero__image {
    max-width: 100%;
    height: auto;
    border-radius: var(--seo-radius-lg);
    box-shadow: var(--seo-shadow-lg);
}

/* ============================================================
 * HERO VISUAL — composé d'icônes (remplace les anciennes images)
 * Génère une "scène" custom par page avec icône centrale + badges flottants
 * ============================================================ */
.seo-hero__visual {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.seo-hero__visual-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(74, 196, 243, 0.25), transparent 60%),
        linear-gradient(135deg, var(--seo-primary-soft) 0%, rgba(255,255,255,0.6) 100%);
    border-radius: 32% 68% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph 14s ease-in-out infinite alternate;
    filter: blur(0.5px);
}

@keyframes blobMorph {
    0%   { border-radius: 32% 68% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 60% 40% 30% 70% / 70% 50% 50% 30%; }
}

.seo-hero__visual-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56%;
    height: 56%;
    background: #fff;
    border-radius: 50%;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 30px 60px -20px rgba(74, 196, 243, 0.45),
        inset 0 0 0 1px rgba(74, 196, 243, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.seo-hero__visual-icon i {
    font-size: clamp(3.5rem, 9vw, 5.5rem);
    background: linear-gradient(135deg, var(--seo-primary) 0%, var(--seo-primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--seo-primary-dark);
}

.seo-hero__visual-badge {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--seo-shadow-md), 0 0 0 1px var(--seo-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.seo-hero__visual-badge--tl { top: 8%;  left: 4%;  animation-delay: 0s;  color: #10b981; }
.seo-hero__visual-badge--tr { top: 12%; right: 6%; animation-delay: 1.5s; color: var(--seo-primary-dark); }
.seo-hero__visual-badge--bl { bottom: 10%; left: 8%; animation-delay: 3s;  color: #f59e0b; }
.seo-hero__visual-badge--br { bottom: 6%;  right: 4%; animation-delay: 4.5s; color: #dc2626; }

.seo-hero__visual-badge--brand { color: var(--seo-primary-dark); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .seo-hero__visual-bg,
    .seo-hero__visual-badge { animation: none; }
}

@media (max-width: 768px) {
    .seo-hero__visual {
        max-width: 240px;
        margin-top: 2rem;
    }
    .seo-hero__visual-badge { width: 48px; height: 48px; font-size: 18px; }
}

/* ============================================================
 * TYPO SECTIONS
 * ============================================================ */
.seo-page h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--seo-text);
}

.seo-page h3 {
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--seo-text);
}

.seo-page p,
.seo-page li {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #334155;
}

.seo-page .seo-section--dark p,
.seo-page .seo-section--dark li {
    color: #cbd5e1;
}

.seo-page .seo-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 13px;
    font-weight: 700;
    color: var(--seo-primary-dark);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.seo-page .seo-section__title {
    text-align: center;
    margin-bottom: 3rem;
}

.seo-page .seo-section__title h2 {
    margin-bottom: 0.75rem;
}

.seo-page .seo-section__title p {
    color: var(--seo-text-muted);
    max-width: 38em;
    margin: 0 auto;
}

/* ============================================================
 * CARDS (steps, features, principles)
 * ============================================================ */
.seo-card {
    background: var(--seo-bg);
    border: 1px solid var(--seo-border);
    border-radius: var(--seo-radius);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    height: 100%;
    transition: transform 200ms var(--seo-ease), box-shadow 200ms var(--seo-ease), border-color 200ms var(--seo-ease);
}

.seo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--seo-shadow-md);
    border-color: rgba(74, 196, 243, 0.3);
}

.seo-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--seo-primary-soft);
    color: var(--seo-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 1.25rem;
}

.seo-card__step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--seo-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: var(--seo-shadow-glow);
}

.seo-card--danger .seo-card__icon {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.seo-card--stat {
    text-align: center;
    border-top: 3px solid var(--seo-primary);
}

.seo-card--stat h3 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--seo-primary-dark);
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.seo-card--stat.seo-card--danger {
    border-top-color: #dc2626;
}

.seo-card--stat.seo-card--danger h3 { color: #dc2626; }

.seo-card--stat.seo-card--warning {
    border-top-color: #f59e0b;
}

.seo-card--stat.seo-card--warning h3 { color: #b45309; }

/* ============================================================
 * COMPARISON TABLE
 * ============================================================ */
.seo-compare-wrapper {
    background: var(--seo-bg);
    border: 1px solid var(--seo-border);
    border-radius: var(--seo-radius-lg);
    overflow: hidden;
    box-shadow: var(--seo-shadow-md);
}

.seo-compare {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
    background: transparent !important;
}

.seo-compare thead th {
    background: var(--seo-dark) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 1.25rem 1rem;
    text-align: left;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: none !important;
}

.seo-compare thead th:nth-child(3) {
    background: var(--seo-primary) !important;
    color: #fff !important;
    position: relative;
}

.seo-compare thead th:not(:first-child) {
    text-align: center;
}

.seo-compare tbody td {
    padding: 1rem;
    border-top: 1px solid var(--seo-border) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    color: var(--seo-text);
    background: transparent !important;
    font-size: 0.95rem;
}

.seo-compare tbody td:not(:first-child) {
    text-align: center;
}

.seo-compare tbody td:nth-child(3) {
    background: var(--seo-primary-soft) !important;
    font-weight: 500;
}

.seo-compare tbody tr:hover td {
    background: rgba(248, 250, 252, 0.6) !important;
}

.seo-compare tbody tr:hover td:nth-child(3) {
    background: rgba(74, 196, 243, 0.12) !important;
}

.seo-compare .fa-check { color: #10b981; font-size: 1.1rem; }
.seo-compare .fa-times { color: #cbd5e1; font-size: 1.1rem; }

/* ============================================================
 * FEATURE / CHECK LIST
 * ============================================================ */
.seo-checklist {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.seo-checklist li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.seo-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--seo-primary-soft);
    color: var(--seo-primary-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.seo-checklist--danger li::before {
    content: "✕";
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

/* ============================================================
 * FAQ ACCORDION (override Bootstrap accordion)
 * ============================================================ */
.seo-faq {
    max-width: 760px;
    margin: 0 auto;
}

.seo-faq .accordion-item {
    background: var(--seo-bg);
    border: 1px solid var(--seo-border) !important;
    border-radius: var(--seo-radius) !important;
    margin-bottom: 0.75rem !important;
    overflow: hidden;
    transition: box-shadow 200ms var(--seo-ease);
    box-shadow: none;
}

.seo-faq .accordion-item:hover {
    box-shadow: var(--seo-shadow-sm);
}

.seo-faq .accordion-header { margin: 0 !important; }

.seo-faq .accordion-button {
    background: transparent !important;
    color: var(--seo-text) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: none !important;
    border: none !important;
    transition: color 150ms var(--seo-ease);
}

.seo-faq .accordion-button:not(.collapsed) {
    background: var(--seo-primary-soft) !important;
    color: var(--seo-primary-dark) !important;
}

.seo-faq .accordion-button:focus {
    outline: 2px solid var(--seo-primary);
    outline-offset: -2px;
}

.seo-faq .accordion-button::after {
    background-image: none;
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 200ms var(--seo-ease);
    color: var(--seo-primary-dark);
}

.seo-faq .accordion-button:not(.collapsed)::after {
    transform: rotate(45deg);
}

.seo-faq .accordion-body {
    padding: 0 1.5rem 1.5rem !important;
    color: #475569;
    line-height: 1.7;
}

/* ============================================================
 * CTA FINAL — fond blanc, look premium et aéré
 * Le footer du site ajoute un svg-top-clip d'environ 130px en haut
 * (en position absolute qui mord sur le contenu précédent).
 * On compense uniquement avec un padding-bottom : le bouton reste
 * visible physiquement au-dessus du SVG, sans cacher la décoration.
 * ============================================================ */
.seo-cta-final {
    background:
        radial-gradient(ellipse 70% 100% at 50% 30%, var(--seo-primary-soft), transparent 70%),
        var(--seo-bg);
    color: var(--seo-text);
    /* Le SVG du footer fait 5.04% de la WIDTH du viewport.
       On réserve 8vw (= 1.5x la hauteur SVG) + 6rem d'air supplémentaire,
       puis on remonte le contenu (.container) avec un z-index pour qu'il
       reste cliquable même si une couche graphique passe par-dessus. */
    padding-top: clamp(4rem, 8vw, 6rem);
    padding-bottom: calc(8vw + 6rem);
    text-align: center;
    position: relative;
}

.seo-cta-final > .container {
    position: relative;
    z-index: 5;
}

/* Filet supérieur subtil pour marquer la séparation avec la section précédente */
.seo-cta-final::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--seo-primary);
    border-radius: 0 0 4px 4px;
}

.seo-cta-final h2 {
    color: var(--seo-text);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.seo-cta-final p {
    color: var(--seo-text-muted);
    font-size: 1.125rem;
    max-width: 36em;
    margin: 0 auto 2rem;
}

/* ============================================================
 * BUTTONS (override + custom)
 * ============================================================ */
.seo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 200ms var(--seo-ease);
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
    min-height: 44px; /* touch target */
}

.seo-btn--primary {
    background: var(--seo-primary);
    color: #fff !important;
    box-shadow: 0 4px 12px -2px rgba(74, 196, 243, 0.45);
}

.seo-btn--primary:hover {
    background: var(--seo-primary-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -2px rgba(74, 196, 243, 0.55);
}

.seo-btn--ghost {
    background: transparent;
    color: var(--seo-text) !important;
    border-color: var(--seo-border);
}

.seo-btn--ghost:hover {
    background: var(--seo-bg-soft);
    color: var(--seo-text) !important;
    border-color: var(--seo-primary);
}

.seo-cta-final .seo-btn--primary {
    background: var(--seo-primary);
    box-shadow: 0 4px 20px -2px rgba(74, 196, 243, 0.6);
}

/* ============================================================
 * BEFORE / AFTER CODE BLOCKS
 * ============================================================ */
.seo-codeblock {
    background: var(--seo-dark);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--seo-radius);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-codeblock--danger { border-top: 3px solid #dc2626; }
.seo-codeblock--success { border-top: 3px solid #10b981; }

.seo-codeblock .red { color: #f87171; }
.seo-codeblock .green { color: #4ac4f3; }

/* ============================================================
 * RESPONSIVE & A11Y
 * ============================================================ */
@media (max-width: 768px) {
    :root { --seo-navbar-h: 100px; } /* navbar mobile : logo 60px + padding navbar + marge safe */
    .seo-hero__actions .seo-btn { width: 100%; justify-content: center; }
    .seo-compare-wrapper { border-radius: var(--seo-radius); }
    .seo-compare thead th,
    .seo-compare tbody td { padding: 0.75rem 0.5rem; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .seo-card,
    .seo-btn,
    .seo-faq .accordion-button,
    .seo-faq .accordion-item {
        transition: none !important;
    }
    .seo-card:hover,
    .seo-btn:hover {
        transform: none !important;
    }
}

/* Focus visible accessible */
.seo-page a:focus-visible,
.seo-page button:focus-visible {
    outline: 2px solid var(--seo-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
