/* ========================================
   MULTIPARC — Thème « classique » (inspiré de tikalinvestissements.fr)
   Bleu nuit + ocre, titres à empattements, angles sobres, sans effets
   « startup » (dégradés de texte, ombres colorées, pastilles arrondies).
   Chargé APRÈS style.css (et après la feuille propre à la page) :
   il ne fait que redéfinir des variables et habiller les composants.
   ======================================== */

:root {
    /* Bleu nuit (identique Tikal : #0F2340 / #16305A / #0B1522) */
    --navy-900: #0b1522;
    --navy-800: #0f2340;
    --navy-700: #16305a;
    --navy-600: #1f3d6e;

    /* Les anciens « bleus » deviennent l'ocre (accent) et le bleu nuit */
    --blue-600: #0f2340;
    --blue-500: #a8612d;   /* ocre — accent principal */
    --blue-400: #c07a44;
    --blue-300: #e0b48e;   /* ocre clair — accent sur fond sombre */
    --blue-100: #f6eee6;   /* fond ocre très pâle */
    --teal: #e0b48e;
    --cyan: #c07a44;

    --ocre: #a8612d;
    --ocre-fonce: #8c4f22;
    --ocre-clair: #e0b48e;
    --beige: #f5f3ef;
    --filet: #e5dfd6;

    --gray-50: #f5f3ef;    /* sections alternées : beige, comme Tikal */
    --gray-500: #4b5563;   /* textes secondaires plus lisibles */
    --gray-600: #374151;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-titre: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --shadow-md: 0 4px 14px rgba(15, 35, 64, .08);
    --shadow-lg: 0 10px 30px rgba(15, 35, 64, .10);
    --shadow-xl: 0 18px 44px rgba(15, 35, 64, .16);
}

body { color: #1f2937; }

/* ---------- Titres à empattements ---------- */
h1, h2, h3,
.hero__title, .section-title, .module-row__title, .cta-final__title,
.pp-hero h1, .pp-step h2, .pp-cta__box h2, .pp-import h3, .entity-card h3, .ps__card h3, .faq__question {
    font-family: var(--font-titre);
    letter-spacing: 0;
}
.hero__title, .pp-hero h1 { font-weight: 700; line-height: 1.12; }
.section-title, .pp-step h2 { font-weight: 700; color: var(--navy-800); }
.text-gradient, .pp-hero h1 em {
    background: none; -webkit-background-clip: initial; background-clip: initial;
    -webkit-text-fill-color: currentColor; color: var(--ocre);
}

/* ---------- Surtitres : capitales espacées, ocre ---------- */
.section-tag, .hero__badge, .module-row__tag, .pp-hero__kicker, .pp-step__num, .pp-sources__title {
    background: none !important; border: none !important; padding: 0 !important; border-radius: 0 !important;
    font-family: var(--font); font-size: .78rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--ocre) !important;
}
.pp-hero__kicker svg { display: none; }
.pp-step__num span { font-family: var(--font-titre); letter-spacing: 0; border-radius: 6px; background: var(--navy-800); color: #fff; }

/* ---------- Boutons : sobres, angles 6 px, sans ombre ---------- */
.btn { border-radius: 6px; box-shadow: none !important; transform: none !important; font-weight: 700; letter-spacing: .01em; }
.btn--primary { background: var(--ocre); border-color: var(--ocre); color: #fff; }
.btn--primary:hover { background: var(--ocre-fonce); border-color: var(--ocre-fonce); color: #fff; }
.btn--outline { color: var(--navy-800); border: 1.5px solid var(--navy-800); background: #fff; }
.btn--outline:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { color: var(--navy-800); border: 1.5px solid var(--navy-800); background: transparent; }
.btn--ghost:hover { background: var(--navy-800); color: #fff; }
.btn--white { color: var(--navy-800); }

/* ---------- En-tête : blanc franc, liens bleu nuit soulignés d'ocre ---------- */
.header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--filet); }
.nav__link { color: var(--navy-900); font-weight: 600; font-size: .95rem; }
.nav__link:hover { color: var(--navy-900); }
.nav__link::after { background: var(--ocre); bottom: -8px; }
.nav__link[aria-current="page"]::after { width: 100%; }
.logo__text { color: var(--navy-800); }
.logo__text strong { color: var(--ocre); }
.logo__icon rect:nth-child(1) { fill: #c07a44; }
.logo__icon rect:nth-child(2) { fill: #a8612d; }
.logo__icon rect:nth-child(3) { fill: #0f2340; }
.burger span { background: var(--navy-900); height: 2.5px; }

/* ---------- Bandeau d'accueil : bleu nuit plein, comme Tikal ---------- */
.hero { background: var(--navy-800); color: #fff; }
.hero__bg-blur { display: none; }
.hero__title { color: #fff; }
.hero__title .text-gradient { color: var(--ocre-clair); }
.hero__subtitle { color: #e5ecf5; }
.hero__badge { color: var(--ocre-clair) !important; }
.hero__micro-badge { color: #dbe4ef; }
.hero .btn--ghost, .pp-hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .85); background: transparent; }
.hero .btn--ghost:hover, .pp-hero .btn--ghost:hover { background: #fff; color: var(--navy-800); }
.hero__screen { border-radius: 10px; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .15); }

.pp-hero { background: var(--navy-800); }
.pp-hero h1 em { color: var(--ocre-clair); }
.pp-hero__kicker { color: var(--ocre-clair) !important; }
.pp-hero p { color: #e5ecf5; }
.pp-fact strong { font-family: var(--font-titre); }
.pp-fact span { color: #cdd8e6; }

/* ---------- Cartes : blanches, fin liseré, filet ocre en haut ---------- */
.entity-card, .ps__card, .step-card, .feature-mini, .devis-card, .faq__item, .pp-import {
    border-radius: 8px; box-shadow: none;
}
.entity-card, .ps__card, .step-card, .devis-card { border: 1px solid var(--filet); border-top: 3px solid var(--ocre); }
.entity-card:hover, .step-card:hover, .feature-mini:hover { transform: none; box-shadow: var(--shadow-lg); }
.entity-card__icon, .feature-mini__icon, .pp-import__icon { background: var(--blue-100) !important; color: var(--ocre) !important; border-radius: 8px; }
.pp-import { border-top: 3px solid var(--ocre-clair); }
.pp-import__icon { background: rgba(224, 180, 142, .15) !important; color: var(--ocre-clair) !important; }

/* ---------- Captures (cadres navigateur) ---------- */
.screenshots__frame, .pp-shot { border-radius: 10px; }
.screenshots__tab { border-radius: 6px; font-weight: 600; }
.screenshots__tab.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.module-row__screenshot { border-radius: 10px; border: 1px solid var(--filet); }

/* ---------- Page « Premiers pas » ---------- */
.pp-steps-nav { background: #fff; border-bottom: 1px solid var(--filet); }
.pp-steps-nav a { border-radius: 6px; border-color: var(--filet); color: var(--navy-900); }
.pp-steps-nav a b { background: var(--blue-100); color: var(--ocre); border-radius: 4px; }
.pp-steps-nav a:hover, .pp-steps-nav a.is-active { border-color: var(--ocre); color: var(--navy-900); }
.pp-steps-nav a.is-active b { background: var(--ocre); color: #fff; }
.pp-step:nth-of-type(even) { background: var(--beige); }
.pp-list li::before { background-color: var(--ocre); }
.pp-sources { background: #fff; border: 1px solid var(--filet); border-left: 3px solid var(--ocre); border-radius: 6px; }
.pp-chip { border-radius: 4px; border-color: var(--filet); background: var(--beige); color: var(--navy-800); }
.pp-tip { border-left-color: var(--ocre); }
.pp-imports { background: var(--navy-800); }
.pp-imports .section-tag { color: var(--ocre-clair) !important; }
.pp-cta__box { background: var(--navy-800); border-radius: 10px; box-shadow: none; }
.pp-cta__box .btn--white { background: var(--ocre); border-color: var(--ocre); color: #fff; }
.pp-cta__box .btn--white:hover { background: var(--ocre-fonce); border-color: var(--ocre-fonce); }

/* ---------- Bandeau final de l'accueil et pied de page ---------- */
.cta-final__inner { background: var(--navy-800); border-radius: 10px; }
.cta-final__inner .btn--white { background: var(--ocre); border-color: var(--ocre); color: #fff; }
.footer { background: var(--navy-900); }
.footer h4 { letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.footer a:hover { color: var(--ocre-clair); }

/* ---------- Menu mobile ---------- */
@media (max-width: 768px) {
    .nav--open { background: #fff; border-top: 1px solid var(--filet); }
    .nav--open .nav__link { color: var(--navy-900); border-bottom-color: var(--filet); }
}

/* Hamburger → croix quand le menu est ouvert (aria-expanded posé par main.js) */
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Page connexion.html (styles intégrés à la page) ---------- */
.page-logo svg rect:nth-child(1) { fill: #c07a44; }
.page-logo svg rect:nth-child(2) { fill: #a8612d; }
.page-logo svg rect:nth-child(3) { fill: #0f2340; }
.page-logo__text strong { color: var(--ocre); }
.page-title, .card__title { font-family: var(--font-titre); color: var(--navy-800); }
.card { border-radius: 8px !important; border: 1px solid var(--filet) !important; border-top: 3px solid var(--ocre) !important; box-shadow: none !important; }
.card:hover { box-shadow: var(--shadow-lg) !important; transform: none !important; }
.card__icon { background: var(--blue-100) !important; color: var(--ocre) !important; }
.card__icon svg { stroke: var(--ocre) !important; }
.card--gestionnaire .card__btn, .card--locataire .card__btn, .card--copro .card__btn { background: var(--ocre) !important; border-radius: 6px !important; box-shadow: none !important; }
.card--locataire .card__btn, .card--copro .card__btn { background: var(--navy-800) !important; }
.card__btn:hover { filter: brightness(.92); }
.back-link { color: var(--navy-800) !important; font-weight: 600; }
.back-link:hover { color: var(--ocre) !important; }

/* Finitions */
.step-card__number { background: var(--navy-800); font-family: var(--font-titre); }
.ps__card-icon { background: none !important; }
.cta-final__inner::before, .cta-final__inner::after { display: none; }
.step-card { padding-bottom: 1.75rem; }

/* Boutons secondaires sur les bandeaux sombres */
.pp-cta__box .btn--ghost, .cta-final__inner .btn--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); background: transparent; }
.pp-cta__box .btn--ghost:hover, .cta-final__inner .btn--ghost:hover { background: #fff; color: var(--navy-800); }
.cta-final__buttons { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero__ctas { flex-wrap: wrap; }

/* ---------- En-tête : connexion en lien discret + 2 boutons (démo, devis) ---------- */
.header .container.header__inner { max-width: 1320px; gap: 2rem; }
.nav { gap: 1.6rem; white-space: nowrap; }
.header__actions { gap: .6rem; white-space: nowrap; }
.header__actions .btn--outline[href="connexion.html"] {
    border: none; background: none; padding-left: .2rem; padding-right: .4rem;
    color: var(--navy-900); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--filet);
}
.header__actions .btn--outline[href="connexion.html"]:hover { color: var(--ocre); background: none; text-decoration-color: var(--ocre); }

/* Menu replié dès 1100 px (le menu horizontal + 3 actions ne tient plus en dessous) */
@media (max-width: 1100px) {
    .nav { display: none; }
    .header__actions { display: none; }
    .burger { display: flex; }
    .nav--open {
        display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0;
        height: calc(100vh - 72px); height: calc(100dvh - 72px); overflow-y: auto;
        background: #fff; padding: 2rem; gap: 0; z-index: 999; border-top: 1px solid var(--filet); white-space: normal;
    }
    .nav--open { align-items: stretch; }
    .nav--open .nav__link { display: block; width: 100%; font-size: 1.125rem; padding: 1rem 0; color: var(--navy-900); border-bottom: 1px solid var(--filet); text-align: center; }
    .nav--open .nav__link::after { display: none; }
    .nav--open .nav__mobile-ctas { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; align-items: center; }
    .nav--open .nav__mobile-ctas .btn { width: 100%; max-width: 22rem; justify-content: center; }
}
