@charset "UTF-8";

/*
 * HebergHub - Charte graphique partagée des applications secondaires.
 *
 * Ce fichier est la source de vérité pour les couleurs, la typographie et les
 * éléments de chrome communs (barre de navigation, pied de page). Il est
 * chargé APRÈS la feuille de style propre à chaque application afin que les
 * jetons de design (variables CSS) soient uniformes partout.
 *
 * Les composants partagés sont préfixés `hub-` pour ne jamais entrer en
 * collision avec les styles spécifiques à une application.
 */

/* ------------------------------------------------------------------ */
/* Jetons de design                                                     */
/* ------------------------------------------------------------------ */

:root {
    /* Couleurs de marque HebergHub */
    --hub-blue: #0A2342;
    --hub-blue-rgb: 10, 35, 66;
    --hub-light-blue: #1D3557;
    --hub-light-blue-rgb: 29, 53, 87;
    --hub-orange: #ff4800;
    --hub-orange-rgb: 255, 72, 0;
    --hub-dark-red: #e03f00;
    --hub-dark-red-rgb: 224, 63, 0;
    --hub-gray: #F8F9FA;

    /* Alias sémantiques */
    --primary-color: var(--hub-blue);
    --primary-dark: var(--hub-light-blue);
    --primary-light: var(--hub-light-blue);
    --secondary-color: var(--hub-orange);
    --accent-color: var(--hub-orange);

    /* Thème clair (par défaut) */
    --bg-primary: #ffffff;
    --bg-secondary: #F8F9FA;
    --bg-accent: var(--hub-blue);
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-accent: var(--hub-orange);
    --text-light: #ffffff;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* Typographie */
    --hub-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Rayons et élévations */
    --hub-radius-sm: 8px;
    --hub-radius: 12px;
    --hub-radius-lg: 20px;
    --hub-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.12), 0 2px 8px -1px rgba(0, 0, 0, 0.08);
    --hub-shadow-lg: 0 15px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 15px -5px rgba(0, 0, 0, 0.15);
    --hub-transition: all 0.3s ease;

    /* Chrome partagé (identique en clair et sombre : toujours sur fond bleu) */
    --hub-chrome-bg: var(--hub-blue);
    --hub-chrome-text: #ffffff;
    --hub-chrome-muted: #cbd5e1;
    --hub-chrome-border: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-accent: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-accent: var(--hub-orange);
    --text-light: #ffffff;
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);

    --hub-chrome-bg: #0b1220;
    --hub-chrome-border: rgba(255, 255, 255, 0.08);
}

html {
    color-scheme: light;
}

[data-theme="dark"] {
    color-scheme: dark;
}

body {
    font-family: var(--hub-font);
}

.hub-accent {
    color: var(--hub-orange);
}

/* Fourni par Tailwind dans les applications, redéfini ici pour le lanceur. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ------------------------------------------------------------------ */
/* Barre de navigation partagée                                         */
/* ------------------------------------------------------------------ */

.hub-nav {
    background-color: var(--hub-chrome-bg);
    color: var(--hub-chrome-text);
    transition: background-color 0.3s ease;
}

.hub-nav__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    gap: 1rem;
}

.hub-nav__brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--hub-chrome-text);
    white-space: nowrap;
}

.hub-nav__brand-app {
    font-size: 1.5rem;
    font-weight: 700;
}

.hub-nav__brand-by {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--hub-chrome-muted);
}

.hub-nav__brand-hub {
    font-size: 1.125rem;
    font-weight: 700;
}

.hub-nav__links {
    display: none;
    align-items: center;
    gap: 1.75rem;
    margin-left: 1.5rem;
    flex: 1;
}

.hub-nav .hub-nav__link {
    color: var(--hub-chrome-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--hub-transition);
    white-space: nowrap;
    background: none;
}

.hub-nav .hub-nav__link:hover,
.hub-nav .hub-nav__link.is-active,
.hub-nav .hub-nav__link.active {
    border-bottom-color: var(--hub-orange);
    color: #ffffff;
}

.hub-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.hub-nav__launcher {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--hub-radius-sm);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--hub-chrome-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--hub-transition);
}

.hub-nav__launcher:hover {
    background-color: var(--hub-orange);
    color: #ffffff;
}

.hub-nav .hub-nav__btn {
    display: none;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: var(--hub-radius-sm);
    background-color: var(--hub-light-blue);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--hub-transition);
}

.hub-nav .hub-nav__btn--primary {
    background-color: var(--hub-orange);
}

.hub-nav .hub-nav__btn:hover {
    opacity: 0.9;
}

.hub-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 0;
    border-radius: var(--hub-radius-sm);
    background: transparent;
    color: var(--hub-chrome-text);
    cursor: pointer;
}

.hub-nav__toggle:hover {
    background-color: var(--hub-light-blue);
}

.hub-nav__toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.hub-nav__mobile {
    display: block;
    border-top: 1px solid var(--hub-chrome-border);
    padding: 0.5rem;
}

.hub-nav__mobile.hidden,
.hub-nav__toggle .hidden {
    display: none;
}

.hub-nav .hub-nav__mobile-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--hub-radius-sm);
    color: var(--hub-chrome-muted);
    text-decoration: none;
    font-weight: 500;
}

.hub-nav .hub-nav__mobile-link:hover {
    background-color: var(--hub-light-blue);
    color: #ffffff;
}

.hub-nav .hub-nav__mobile-link--launcher {
    color: #ffffff;
    background-color: rgba(var(--hub-orange-rgb), 0.85);
    margin-top: 0.25rem;
}

/* Bouton de bascule de thème (partagé par toutes les applications) */
.hub-nav .theme-toggle,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--hub-chrome-text);
    cursor: pointer;
    transition: var(--hub-transition);
}

.theme-toggle:hover {
    background-color: var(--hub-orange);
}

.theme-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
}

[data-theme="light"] .theme-toggle .moon-icon,
[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon,
[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

@media (min-width: 1024px) {
    .hub-nav__links,
    .hub-nav__launcher,
    .hub-nav .hub-nav__btn {
        display: flex;
    }

    .hub-nav__toggle,
    .hub-nav__mobile {
        display: none !important;
    }
}

/* ------------------------------------------------------------------ */
/* Pied de page partagé                                                 */
/* ------------------------------------------------------------------ */

.hub-footer {
    background-color: var(--hub-chrome-bg);
    color: var(--hub-chrome-text);
    padding: 3rem 1rem 1.5rem;
    transition: background-color 0.3s ease;
}

.hub-footer__inner {
    max-width: 80rem;
    margin: 0 auto;
}

.hub-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.hub-footer__brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hub-footer__tagline {
    color: var(--hub-chrome-muted);
    line-height: 1.6;
    max-width: 32rem;
}

.hub-footer__title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hub-chrome-muted);
    margin-bottom: 1rem;
}

.hub-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hub-footer__list a,
.hub-footer__list span {
    color: var(--hub-chrome-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hub-footer__list a:hover {
    color: var(--hub-orange);
}

.hub-footer__social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.hub-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--hub-chrome-text);
    transition: var(--hub-transition);
}

.hub-footer__social a:hover {
    background-color: var(--hub-orange);
    color: #ffffff;
    transform: translateY(-3px);
}

.hub-footer__social svg {
    width: 1.15rem;
    height: 1.15rem;
}

.hub-footer__bottom {
    border-top: 1px solid var(--hub-chrome-border);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--hub-chrome-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hub-footer__heart {
    color: var(--hub-orange);
    display: inline-block;
    animation: hub-heartbeat 1.5s infinite;
}

@keyframes hub-heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

@media (min-width: 768px) {
    .hub-footer__grid {
        grid-template-columns: 1.6fr 1fr 1fr;
    }

    .hub-footer__grid--compact {
        grid-template-columns: 1.6fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-footer__heart {
        animation: none;
    }
}
