/* ================================
   Bridge74-Visio – site.css
   Styles communs du site marketing
================================ */

/* ===== Variables ===== */

:root {
    --b74v-bleu: #18005a;
    --b74v-bleu-ui: #11003a;
    --b74v-orange: #c23400;
    --b74v-orange-ui: #dd3f00;
    --b74v-orange-ui-b: #ff4800;
    --header-h: 72px;
    --fond-page: #e9eff5;
    --carte: #f9fbfd;
    --bord: #e3e8ef;
    --page-gap-bottom: 72px;
}

.accent {
    color: #ff4800;
    font-weight: 700;
}

@media (max-width: 980px) {
    .header-inner {
        padding: 0 14px;
        gap: 12px;
    }

    .main-nav ul {
        gap: 16px;
        font-size: 0.9rem;
    }

    .header-actions {
        gap: 10px;
        margin-left: 14px;
    }

}

@media (max-width: 760px) {
    .main-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }
}

/* ===== Base ===== */

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

/* =========================
   CONTENEUR PAGE STANDARD
========================= */

.page-container {
    min-height: calc(100vh - var(--header-h));
    padding: 48px 20px var(--page-gap-bottom);
}

.page-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.page-wrap.large {
    max-width: 1300px;
}

html,
body {
    height: 100%;
}

body {

    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
    color: var(--b74v-bleu);
    background: var(--fond-page);
    line-height: 1.4;
}

main {
    flex: 1;
}

/* 
TODO Bridge74-Visio
Créer plus tard une classe .page-container pour standardiser
la largeur et les marges des pages internes (FAQ, aide, contact,
produit, etc.) afin d'éviter les réglages page par page.
*/

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

/* =========================
   HEADER / STICKY MENU
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, .80);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.header-inner {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
    margin-left: -8px;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    gap: 26px;
    list-style: none;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--b74v-bleu);
    opacity: .85;
    padding: 6px 8px;
    height: 56px;
    display: inline-flex;
    border-radius: 6px;
    align-items: center;
    transition: color 120ms ease, opacity 120ms ease, background-color 120ms ease;
}

.nav-link:hover {
    opacity: 1;
    background-color: rgba(33, 14, 86, .08);
}

.header-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 1.3rem;
}

/* =========================
   Titres de pages
   ========================= */

.title {
    text-align: center;
    font-size: 3.0rem;
    font-weight: 800;
    color: var(--b74v-bleu);
    line-height: 1.1;
    margin: 0 0 1rem;
}

/* ===== Lien connexion ===== */

.nav-connexion {
    font-weight: 800;
    opacity: 1;
    position: relative;
}

.nav-connexion::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--b74v-orange);
    transform: scaleX(0);
    transition: transform 160ms ease;
}

.nav-connexion:hover::after {
    transform: scaleX(1);
}

.nav-connexion:hover {
    color: var(--b74v-orange);
}

/* ===== Boutons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 800;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

/* ===== Bouton primaire (orange) ===== */
/* =========================
   Boutons principaux du site
   ========================= */

.btn-primary {
    background: var(--b74v-orange-ui-b);
    color: #fff;
    border: 1px solid rgba(0, 0, 0, .25);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .35),
        inset 0 -3px 0 rgba(0, 0, 0, .22);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .34),
        inset 0 1px 0 rgba(255, 255, 255, .35),
        inset 0 -3px 0 rgba(0, 0, 0, .25);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, .22),
        inset 0 3px 0 rgba(0, 0, 0, .30);
}

.site-header .btn-primary {
    background: var(--b74v-orange-ui-b);
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, .35),
        inset 0 -3px 0 rgba(0, 0, 0, .22);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.site-header .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .34),
        inset 0 1px 0 rgba(255, 255, 255, .35),
        inset 0 -3px 0 rgba(0, 0, 0, .25);
}

.site-header .btn-primary:active {
    transform: translateY(1px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, .22),
        inset 0 3px 0 rgba(0, 0, 0, .30);
}

/* ===== Onglet actif ===== */

.nav-link.is-active {
    color: var(--b74v-orange);
    font-weight: 800;
    opacity: 1;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: #070612;
    color: rgba(255, 255, 255, .85);
    padding: 70px 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--b74v-orange-ui-b);
}

.footer-copy {
    font-size: 1rem;
    color: rgba(255, 255, 255, .6);
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, .78);
}

.footer-links a:hover {
    color: #fff;
}