/* =====================================================================
   Planete Medias — feuille de style
   Charte derivee de Planete Hollywood V3 (= skin Calculateur de devis),
   re-teintee ORANGE. Site statique, polices self-hosted, aucun build.
   Accent de marque centralise dans --accent (un seul endroit a changer).
   ===================================================================== */

/* ---------- Polices self-hosted (subset latin) ---------- */
@font-face {
    font-family: 'Instrument Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/instrument-serif.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Instrument Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
    --ink: #0a0a0b;
    --ink-soft: #121214;
    --ink-mid: #1a1a1d;
    --ink-card: #16161a;
    --ash: #2a2a2e;
    --bone: #e8e6df;
    --bone-dim: #b9b5a8;
    --muted: #8a8478;
    --line: rgba(232, 230, 223, 0.12);
    --line-soft: rgba(232, 230, 223, 0.06);

    /* Accent de marque : ORANGE (remplace l'or PH #c8b47a) */
    --accent: #e8843d;
    --accent-bright: #f29a55;
    --accent-soft: rgba(232, 132, 61, 0.72);
    --accent-line: rgba(232, 132, 61, 0.28);
    --accent-glow: rgba(232, 132, 61, 0.09);

    --green: #7ac87a;

    --serif: "Instrument Serif", Georgia, serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

    --maxw: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    background: var(--ink);
    color: var(--bone);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    max-width: 2200px;
    margin: 0 auto;
}

::selection {
    background: var(--accent);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

.serif {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: 0;
}

.it {
    font-style: italic;
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}

/* Index monospace « 01 / » facon maquette */
.idx {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-soft);
    font-variant-numeric: tabular-nums;
}

/* =========== TOPBAR =========== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 24px;
    background: rgba(10, 10, 11, 0.86);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bone-dim);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bone);
    letter-spacing: 0.22em;
    font-weight: 500;
}

.topbar-logo {
    height: 22px;
    width: auto;
}

.topbar-status {
    color: var(--green);
    margin-left: 4px;
    font-size: 9px;
}

.topbar-nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
    align-items: center;
}

.topbar-nav a {
    color: var(--bone);
    font-weight: 500;
    transition: color 0.2s;
}

.topbar-nav a:hover {
    color: var(--accent);
}

.topbar-menu-btn {
    display: none;
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 0.15em;
}

/* =========== OVERLAY MENU (mobile) =========== */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.overlay-link {
    font-family: var(--serif);
    font-size: 34px;
    color: var(--bone);
    transition: color 0.2s;
}

.overlay-link:hover {
    color: var(--accent);
}

.overlay-close {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

/* =========== DECOR (grille + spotlight) =========== */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(90deg, rgba(232, 230, 223, 0.04) 0 1px, transparent 1px 120px);
    -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 28%, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 28%, transparent 78%);
}

.bg-spot {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 620px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 50% 50% at 50% 40%, var(--accent-glow), transparent 70%);
}

/* =========== HERO =========== */
.hero {
    position: relative;
    padding: 116px 0 96px;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-idx {
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 7vw, 88px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: var(--bone);
    max-width: 16ch;
}

.hero-sub {
    margin-top: 28px;
    max-width: 56ch;
    color: var(--bone-dim);
    font-size: 15px;
    line-height: 1.7;
}

.hero-cta {
    margin-top: 40px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========== BOUTONS =========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: var(--ink);
    border-color: var(--accent);
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
}

.btn-ghost {
    color: var(--bone);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =========== SECTIONS =========== */
.section {
    position: relative;
    padding: 92px 0;
    border-top: 1px solid var(--line-soft);
}

.section-head {
    max-width: 62ch;
    margin-bottom: 56px;
}

.section-idx {
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    color: var(--bone);
}

.section-lead {
    margin-top: 18px;
    color: var(--bone-dim);
    font-size: 14px;
    line-height: 1.7;
}

/* =========== GRILLES + CARTES =========== */
.grid {
    display: grid;
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: 2px;
    overflow: hidden;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--ink-card);
    padding: 34px 30px;
    transition: background 0.25s;
    position: relative;
}

.card:hover {
    background: var(--ink-mid);
}

.card-idx {
    margin-bottom: 22px;
}

.card-title {
    font-family: var(--serif);
    font-size: 23px;
    color: var(--bone);
    margin-bottom: 12px;
}

.card-text {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    transition: gap 0.2s;
}

.card-link:hover {
    gap: 14px;
}

/* =========== PRODUITS SaaS =========== */
.product {
    background: var(--ink-card);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 36px 34px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.25s;
}

.product:hover {
    border-color: var(--accent-line);
}

.product-badge {
    align-self: flex-start;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-line);
    border-radius: 2px;
    padding: 4px 10px;
}

.product-title {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--bone);
}

.product-text {
    color: var(--bone-dim);
    font-size: 13px;
    line-height: 1.7;
}

.product-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* =========== PROCESS / ETAPES =========== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: 2px;
    overflow: hidden;
}

.step {
    background: var(--ink-card);
    padding: 30px 26px;
}

.step-n {
    font-family: var(--serif);
    font-size: 40px;
    color: var(--accent-soft);
    line-height: 1;
    margin-bottom: 16px;
}

.step-title {
    color: var(--bone);
    font-size: 13px;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.step-text {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

/* =========== BANDE CTA =========== */
.cta-band {
    position: relative;
    text-align: center;
    padding: 96px 0;
    border-top: 1px solid var(--line-soft);
    overflow: hidden;
}

.cta-title {
    font-family: var(--serif);
    font-size: clamp(30px, 5vw, 56px);
    color: var(--bone);
    line-height: 1.05;
    max-width: 20ch;
    margin: 0 auto;
}

.cta-sub {
    margin: 20px auto 0;
    max-width: 48ch;
    color: var(--bone-dim);
    font-size: 14px;
}

.cta-band .hero-cta {
    justify-content: center;
}

/* =========== FORMULAIRE =========== */
.form {
    display: grid;
    gap: 18px;
    max-width: 620px;
}

.field label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.field input,
.field textarea {
    width: 100%;
    background: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 13px 14px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--bone);
    transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

/* =========== FOOTER =========== */
.footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 40px;
    background: var(--ink-soft);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--bone);
    margin-bottom: 10px;
}

.footer-tag {
    color: var(--muted);
    font-size: 12px;
    max-width: 32ch;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 16px;
    font-weight: 400;
}

.footer-col a {
    display: block;
    color: var(--bone-dim);
    font-size: 12px;
    margin-bottom: 9px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* =========== REVEAL (anim au scroll) =========== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .container { padding: 0 20px; }
    .topbar { padding: 0 20px; }
    .topbar-nav { display: none; }
    .topbar-menu-btn { display: inline-flex; margin-left: auto; }
    .grid-2,
    .grid-3,
    .steps { grid-template-columns: 1fr; }
    .hero { padding: 80px 0 64px; }
    .section { padding: 64px 0; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Accessibilite : respecter prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
