/* =============================================================================
   Photopea.fr - Feuille de style principale.
   Charte "Editeur sombre" : UI graphite facon Photoshop dark + spectre du logo
   en accent maitrise (logo, degrade de hero, CTA, filets). Police General Sans
   (Fontshare). Le site se fond avec l'iframe : transition invisible a l'ouverture.
   ========================================================================== */

:root {
    /* --- Graphite (surfaces sombres, du plus profond au plus clair) --- */
    --g-900: #141517;   /* fonds les plus profonds, footer */
    --g-850: #1E1F22;   /* fond principal (canvas de l'editeur) */
    --g-800: #232427;   /* bandes alternees */
    --g-750: #26282C;
    --g-700: #2B2E33;   /* surfaces, cards, header */
    --g-650: #33363C;   /* cards survolees */
    --g-600: #3C4046;   /* bordures fortes */

    /* --- Texte --- */
    --text:       #F4F5F7;
    --text-muted: #A6ACB4;
    --text-dim:   #767C85;

    /* --- Bordures / voiles --- */
    --border:        rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .14);
    --overlay:       rgba(10, 11, 12, .72);

    /* --- Spectre du logo Photopea --- */
    --amber:  #ffab15;
    --coral:  #ff6849;
    --pink:   #ff5ad4;
    --purple: #cd67e5;
    --cyan:   #00c3ff;
    --teal:   #39e5d0;
    --lime:   #bee548;

    /* Rainbow complet : reserve aux filets fins et echos du logo. */
    --spectrum-full: linear-gradient(90deg, #ffab15, #ff6849, #ff5ad4, #cd67e5, #00c3ff, #39e5d0, #bee548);
    /* Degrade CTA : sous-ensemble chaud vers froid, plus premium sur un bouton. */
    --spectrum-cta:  linear-gradient(100deg, #ffab15 0%, #ff5ad4 42%, #00c3ff 100%);

    /* --- Rayons --- */
    --r-sm:   10px;
    --r-md:   14px;
    --r-lg:   20px;
    --r-xl:   28px;
    --r-pill: 999px;

    /* --- Ombres (noir, jamais teintees) --- */
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .30);
    --shadow-lift: 0 18px 48px rgba(0, 0, 0, .45), 0 4px 12px rgba(0, 0, 0, .30);

    /* --- Rythme --- */
    --maxw: 1140px;
    --pad:  clamp(20px, 5vw, 40px);

    --font-display: 'General Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body:    'General Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ============================== RESET / BASE ============================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-body);
    background: var(--g-850);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.editor-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }

::selection { background: rgba(0, 195, 255, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }
.grad-text {
    background: var(--spectrum-cta);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================== LAYOUT ============================== */
.section { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.eyebrow {
    display: inline-block; font-family: var(--font-display); font-weight: 600;
    font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.section-subtitle { margin-top: 16px; color: var(--text-muted); font-size: 1.08rem; }

/* ============================== BUTTONS ============================== */
.btn-spectrum, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-display); font-weight: 600; font-size: 1rem;
    padding: 13px 24px; border-radius: var(--r-pill);
    transition: transform .18s ease, box-shadow .25s ease, background .25s ease, filter .2s ease;
    white-space: nowrap;
}
.btn-spectrum {
    background: var(--spectrum-cta); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    box-shadow: 0 6px 22px rgba(0, 195, 255, .18), 0 2px 8px rgba(255, 90, 212, .14);
}
.btn-spectrum .icon { font-size: 1.15em; }
.btn-spectrum:hover { transform: translateY(-2px); filter: brightness(1.06) saturate(1.05); box-shadow: 0 12px 34px rgba(0, 195, 255, .30), 0 4px 14px rgba(255, 90, 212, .22); }
.btn-spectrum:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .28); }
.btn-ghost .icon { font-size: 1em; color: var(--text-dim); }

.btn-lg { padding: 16px 30px; font-size: 1.08rem; }

/* ============================== HEADER / NAV ============================== */
.site-header { position: sticky; top: 0; z-index: 100; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(30, 31, 34, .82); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--border); }
.nav-container { max-width: var(--maxw); margin-inline: auto; padding: 14px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.02em; }
.nav-logo-mark { border-radius: 7px; }
.nav-logo-tld { background: var(--spectrum-cta); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--text-muted); font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: var(--r-sm); transition: color .18s ease, background .18s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--text); background: rgba(255, 255, 255, .05); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 8px; margin-left: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: .96rem;
    padding: 10px 18px; border-radius: var(--r-pill);
    background: var(--spectrum-cta); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    transition: transform .18s ease, filter .2s ease, box-shadow .25s ease;
    box-shadow: 0 4px 16px rgba(0, 195, 255, .16);
}
.nav-cta .icon { font-size: 1.05em; }
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 8px 24px rgba(0, 195, 255, .26); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ============================== HERO ============================== */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-glow {
    position: absolute; inset: -30% -10% auto -10%; height: 620px; z-index: 0;
    background:
        radial-gradient(46% 60% at 22% 20%, rgba(255, 90, 212, .20), transparent 70%),
        radial-gradient(50% 60% at 78% 10%, rgba(0, 195, 255, .22), transparent 70%),
        radial-gradient(40% 50% at 55% 40%, rgba(255, 171, 21, .12), transparent 70%);
    filter: blur(30px); pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto;
    padding: clamp(48px, 7vw, 92px) var(--pad) clamp(56px, 8vw, 100px);
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy, .hero-preview { min-width: 0; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: .86rem; letter-spacing: .04em;
    color: var(--text); padding: 7px 14px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong); margin-bottom: 22px;
}
.hero-eyebrow .icon { color: var(--amber); }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.1rem); font-weight: 700; letter-spacing: -0.035em; }
.hero-subtitle { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-muted); max-width: 30ch; }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { list-style: none; margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .95rem; font-weight: 500; }
.hero-trust .icon { color: var(--teal); font-size: 1.05em; }

/* Apercu "fenetre navigateur" cliquable (renforce l'app-first) */
.hero-preview { display: block; width: 100%; border-radius: var(--r-lg); }
.browser-frame {
    display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--g-700);
    border: 1px solid var(--border-strong); box-shadow: var(--shadow-lift);
    transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.hero-preview:hover .browser-frame { transform: translateY(-4px) scale(1.006); box-shadow: 0 26px 60px rgba(0,0,0,.5); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--g-750); border-bottom: 1px solid var(--border); }
.browser-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--g-600); }
.browser-dot:nth-child(1) { background: #ff5f57; } .browser-dot:nth-child(2) { background: #febc2e; } .browser-dot:nth-child(3) { background: #28c840; }
.browser-url { min-width: 0; max-width: 260px; margin-left: 10px; font-size: .78rem; color: var(--text-dim); font-family: var(--font-body); background: var(--g-850); padding: 4px 12px; border-radius: var(--r-pill); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-body { display: block; position: relative; aspect-ratio: 16 / 10; background: repeating-conic-gradient(#2a2c30 0% 25%, #26282c 0% 50%) 50% / 22px 22px; }
.browser-body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-play {
    position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%;
    display: grid; place-items: center; font-size: 32px; color: #fff;
    background: var(--spectrum-cta); box-shadow: 0 10px 30px rgba(0,0,0,.4);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
    transition: transform .25s ease, filter .2s ease;
}
.hero-preview:hover .hero-play { transform: scale(1.08); filter: brightness(1.08); }

/* ============================== TRUST STRIP ============================== */
.trust { border-bottom: 1px solid var(--border); background: var(--g-800); }
.trust-list {
    list-style: none; max-width: var(--maxw); margin-inline: auto; padding: 20px var(--pad);
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
}
.trust-list li { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); font-weight: 500; font-size: .98rem; }
.trust-icon { font-size: 1.35em; color: var(--text); }
.trust-list .icon { color: var(--cyan); }

/* ============================== SHOWCASE ============================== */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.show-card {
    display: flex; flex-direction: column; text-align: left; width: 100%;
    background: var(--g-700); border: 1px solid var(--border); border-radius: var(--r-lg);
    overflow: hidden; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.show-card:hover { transform: translateY(-4px) scale(1.02); border-color: var(--border-strong); box-shadow: var(--shadow-lift); }
.show-media { display: block; aspect-ratio: 3 / 2; background: repeating-conic-gradient(#2a2c30 0% 25%, #26282c 0% 50%) 50% / 20px 20px; overflow: hidden; }
.show-media img { width: 100%; height: 100%; object-fit: cover; }
.show-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.show-title { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; }
.show-desc { color: var(--text-muted); font-size: .96rem; }
.show-cta { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 600; font-size: .95rem; }
.show-cta .icon { transition: transform .2s ease; }
.show-card:hover .show-cta .icon { transform: translateX(4px); }

/* ============================== FEATURES ============================== */
.features { position: relative; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--g-700); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 28px 26px; transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--g-650); }
.feature-icon {
    display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: var(--r-md);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--border); font-size: 30px; color: var(--cyan); margin-bottom: 18px;
}
.feature-title { font-size: 1.2rem; margin-bottom: 8px; }
.feature-desc { color: var(--text-muted); font-size: .98rem; }

/* ============================== HOW IT WORKS ============================== */
.how { background: var(--g-800); max-width: none; }
.how > .section-head, .how > .how-steps, .how > .how-cta { max-width: var(--maxw); margin-inline: auto; }
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-step { position: relative; background: var(--g-700); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 26px; }
.how-step-num {
    position: absolute; top: -14px; left: 26px; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); background: var(--spectrum-cta); box-shadow: var(--shadow-soft);
}
.how-step-icon { display: block; font-size: 34px; color: var(--text); margin: 8px 0 16px; }
.how-step-icon .icon { color: var(--pink); }
.how-step-title { font-size: 1.18rem; margin-bottom: 8px; }
.how-step-desc { color: var(--text-muted); font-size: .98rem; }
.how-cta { text-align: center; margin-top: 44px; }

/* ============================== FAQ ============================== */
.faq-list { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--g-700); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s ease; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
    padding: 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--text-dim); transition: transform .25s ease; font-size: 1.1em; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--cyan); }
.faq-a { padding: 0 22px 20px; color: var(--text-muted); }

/* ============================== SEO CONTENT ============================== */
.seo-band { background: var(--g-900); border-top: 1px solid var(--border); }
.seo-article { max-width: 820px; }
.seo-article h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 18px; }
.seo-article h3 { font-size: 1.22rem; margin: 32px 0 10px; color: var(--text); }
.seo-article p { color: var(--text-muted); margin-bottom: 6px; }
.seo-lead { font-size: 1.1rem; color: var(--text-muted) !important; }
.seo-cta {
    margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 28px 30px; border-radius: var(--r-lg);
    background: linear-gradient(120deg, var(--g-750), var(--g-700));
    border: 1px solid var(--border-strong); position: relative; overflow: hidden;
}
.seo-cta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--spectrum-full); opacity: .9; }
.seo-cta h3 { margin: 0 0 4px; color: var(--text); }
.seo-cta p { margin: 0; }

/* ============================== FOOTER ============================== */
.site-footer { background: var(--g-900); border-top: 1px solid var(--border); }
.footer-grid { max-width: var(--maxw); margin-inline: auto; padding: clamp(44px, 6vw, 64px) var(--pad) 40px; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .nav-logo { font-size: 1.2rem; }
.footer-tagline { margin: 16px 0 22px; color: var(--text-muted); max-width: 34ch; }
.footer-open { font-size: .95rem; padding: 11px 20px; }
.footer-col-title { font-family: var(--font-display); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: .96rem; transition: color .18s ease; }
.footer-links a:hover { color: var(--text); }
.footer-about { color: var(--text-muted); font-size: .95rem; }
.footer-about a { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner { max-width: var(--maxw); margin-inline: auto; padding: 18px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.footer-bottom-inner p { color: var(--text-dim); font-size: .9rem; }
.footer-legal { list-style: none; display: flex; gap: 20px; }
.footer-legal a { color: var(--text-dim); font-size: .9rem; transition: color .18s ease; }
.footer-legal a:hover { color: var(--text); }

/* ============================== APP EDITOR OVERLAY ============================== */
/* Scroll bloque (html ET body : le scroll est porte par html, bloquer body seul ne suffit pas). */
html.editor-open, body.editor-open { overflow: hidden; }
.app-editor {
    position: fixed; inset: 0; z-index: 1000; background: var(--g-850);
    opacity: 0; transition: opacity .22s ease;
}
.app-editor.is-open { opacity: 1; }
.app-editor[hidden] { display: none; }
#app-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Bouton fermer : flottant en bas a droite, un max de place pour l'app (comme l'ancien site). */
.app-editor-close {
    position: absolute; right: 16px; bottom: 16px; z-index: 2;
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    font-size: 22px; color: var(--text);
    background: rgba(20, 21, 23, .72); border: 1px solid var(--border-strong);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.app-editor-close:hover { background: rgba(44, 46, 51, .92); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, .55); }
.app-editor-loader { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: flex; gap: 8px; z-index: 1; }
.app-editor.is-ready .app-editor-loader { display: none; }
.app-editor-loader span { width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); animation: ppbounce 1s infinite ease-in-out; }
.app-editor-loader span:nth-child(1) { background: var(--amber); animation-delay: -.32s; }
.app-editor-loader span:nth-child(2) { background: var(--pink); animation-delay: -.16s; }
@keyframes ppbounce { 0%, 80%, 100% { transform: scale(.5); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* ============================== INTERIOR PAGES ============================== */
/* En-tete de page (blog, faq, usage, article, legal) */
.page-header { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-header-inner { position: relative; z-index: 1; text-align: center; padding-block: clamp(44px, 6vw, 76px); }
.page-title { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.page-lead { margin: 18px auto 0; max-width: 60ch; color: var(--text-muted); font-size: 1.12rem; }
.page-header .hero-ctas { justify-content: center; margin-top: 28px; }
.page-header-icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid var(--border); font-size: 34px; color: var(--cyan); margin-bottom: 18px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: .88rem; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .icon { font-size: .85em; opacity: .6; }

/* Pages "par usage" */
.usecase-body { max-width: 860px; }
.usecase-h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 6px 0 26px; }
.usecase-visual { display: block; width: 100%; margin: 0 auto 40px; max-width: 720px; }
.usecase-steps { grid-template-columns: repeat(2, 1fr); margin-bottom: 8px; }
.usecase-tips { margin-top: 46px; }
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.tips-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.tips-list .icon { color: var(--teal); font-size: 1.2em; flex: none; margin-top: 4px; }

.related-band { }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.related-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--g-700); border: 1px solid var(--border); border-radius: var(--r-md); transition: transform .2s ease, border-color .2s ease; }
.related-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.related-icon { font-size: 26px; color: var(--cyan); flex: none; }
.related-title { font-family: var(--font-display); font-weight: 600; flex: 1; }
.related-arrow { color: var(--text-dim); transition: transform .2s ease, color .2s ease; }
.related-card:hover .related-arrow { color: var(--cyan); transform: translateX(3px); }

/* Bande CTA generique */
.cta-band { background: var(--g-800); border-top: 1px solid var(--border); }
.cta-band-inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(48px, 7vw, 80px) var(--pad); text-align: center; }
.cta-band-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-band-inner p { color: var(--text-muted); margin-bottom: 26px; }

/* Icone dans les cartes d'usage sans image */
.show-media--icon { display: grid; place-items: center; background: linear-gradient(135deg, var(--g-750), var(--g-700)); }
.show-media--icon .icon { font-size: 60px; color: var(--cyan); }

/* Blog (liste + cartes) */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-grid--related { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
.blog-card { display: flex; flex-direction: column; text-align: left; background: var(--g-700); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lift); }
.blog-card-cover { display: block; aspect-ratio: 16 / 9; position: relative; background: linear-gradient(135deg, var(--g-750), var(--g-700)); overflow: hidden; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-cover-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; color: var(--text-dim); }
.blog-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.blog-card-meta { font-size: .82rem; color: var(--text-dim); font-weight: 500; }
.blog-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; line-height: 1.3; }
.blog-card-desc { color: var(--text-muted); font-size: .95rem; flex: 1; }
.blog-card .show-cta { margin-top: 4px; }

/* Prose (corps d'article + pages legales) */
.prose { max-width: 720px; margin-inline: auto; color: var(--text-muted); font-size: 1.06rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); color: var(--text); margin: 40px 0 14px; }
.prose h3 { font-size: 1.2rem; color: var(--text); margin: 30px 0 10px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 1.25em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--clay); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

/* Article */
.article-wrap { max-width: 760px; }
.article-title { max-width: 20ch; margin-inline: auto; }
.article-byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; }
.byline-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.byline-avatar--ph { display: grid; place-items: center; background: var(--g-700); border: 1px solid var(--border-strong); font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--cyan); }
.byline-text { text-align: left; display: flex; flex-direction: column; }
.byline-name { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.byline-meta { font-size: .85rem; color: var(--text-dim); }
.article-cover { width: 100%; border-radius: var(--r-lg); margin-bottom: 32px; border: 1px solid var(--border); }
.article-editor-cta { margin: 44px auto 0; max-width: 720px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--g-750), var(--g-700)); border: 1px solid var(--border-strong); position: relative; overflow: hidden; }
.article-editor-cta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--spectrum-full); }
.article-editor-cta h2 { font-size: 1.3rem; color: var(--text); margin: 0 0 4px; }
.article-editor-cta p { margin: 0; color: var(--text-muted); }
.author-card { max-width: 720px; margin: 30px auto 0; display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: var(--g-800); border: 1px solid var(--border); border-radius: var(--r-lg); }
.author-card-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; font-size: 1.1rem; }
.author-card-name { font-family: var(--font-display); font-weight: 600; color: var(--text); display: flex; flex-direction: column; }
.author-card-role { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--text-dim); }
.author-card-bio { margin-top: 8px; color: var(--text-muted); font-size: .95rem; }

/* Pages legales */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.3rem; }
.legal-updated { font-size: .9rem; color: var(--text-dim); margin-top: 30px; }

/* Formulaire de contact */
.contact-section { max-width: 720px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--text); }
.contact-form input, .contact-form textarea {
    width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
    background: var(--g-700); border: 1px solid var(--border-strong); border-radius: var(--r-md);
    padding: 13px 16px; transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 195, 255, .15);
}
.form-submit { align-self: flex-start; margin-top: 4px; }
.form-submit-label { display: inline-flex; align-items: center; gap: 10px; }
.form-submit-sending { display: none; }
.form-submit.is-sending { opacity: .85; cursor: wait; }
.form-submit.is-sending .form-submit-label { display: none; }
.form-submit.is-sending .form-submit-sending { display: inline-flex; }
.form-feedback { min-height: 1.3em; font-size: .98rem; font-weight: 500; }
.form-feedback.is-success { color: #7bd88f; }
.form-feedback.is-error { color: #ff8f7d; }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-preview { order: -1; max-width: 520px; }
    .hero-subtitle { max-width: none; }
    .showcase-grid, .features-grid, .how-steps, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .nav-burger { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
        padding: 12px var(--pad) 18px; background: var(--g-800); border-bottom: 1px solid var(--border);
        transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
    }
    .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .site-header { background: rgba(30, 31, 34, .9); backdrop-filter: saturate(160%) blur(14px); }
    .nav-cta { margin-left: 0; justify-content: center; margin-top: 6px; }
    .nav-link { padding: 12px; }
}

@media (max-width: 560px) {
    .showcase-grid, .features-grid, .how-steps, .footer-grid,
    .blog-grid, .blog-grid--related, .usecase-steps, .form-row { grid-template-columns: 1fr; }
    .hero-ctas .btn-lg { width: 100%; }
    .seo-cta, .article-editor-cta { flex-direction: column; align-items: stretch; text-align: left; }
}
