/* Pages publiques / auth — style OFIVEGE (E:\ofive GE remake) */
:root {
    --ofive-blue: #1E5BA8;
    --ofive-blue-dark: #153E7A;
    --ofive-black: #0a0a0a;
    --ofive-bg: #f8f9fa;
    --ofive-text: #1f2937;
    --ofive-text-muted: #6b7280;
    --ofive-border: #e5e7eb;
}

body.ofive-guest {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    background: var(--ofive-bg);
    color: var(--ofive-text);
    min-height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

body.ofive-guest h1,
body.ofive-guest .ofive-card__title {
    font-size: 1.125rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    body.ofive-guest h1,
    body.ofive-guest .ofive-card__title {
        font-size: 1.25rem;
    }
}

.ofive-guest-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header / footer noirs */
.ofive-guest-header {
    background: var(--ofive-black);
    color: #fff;
}

.ofive-guest-header__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ofive-guest-header__inner { height: 4rem; padding: 0 1.5rem; }
}

.ofive-guest-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.ofive-guest-brand__logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ofive-blue);
}

.ofive-guest-brand__tag {
    display: none;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 640px) {
    .ofive-guest-brand__tag { display: block; }
}

.ofive-guest-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.ofive-guest-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.15s;
}

.ofive-guest-nav a:hover {
    color: #fff;
}

.ofive-guest-footer {
    background: var(--ofive-black);
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    text-align: center;
    font-size: 0.75rem;
}

.ofive-guest-main {
    flex: 1;
}

.ofive-guest-main--center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .ofive-guest-main--center { padding: 3rem 1rem; }
}

/* Carte blanche (login, etc.) */
.ofive-card {
    background: #fff;
    border: 1px solid var(--ofive-border);
    border-radius: 0;
    padding: 1.5rem;
    width: 100%;
    box-shadow: none;
}

@media (min-width: 768px) {
    .ofive-card { padding: 2rem; }
}

.ofive-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ofive-text);
    margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
    .ofive-card__title { font-size: 1.25rem; }
}

.ofive-accent-line {
    height: 1px;
    width: 100%;
    background: var(--ofive-blue);
    margin-bottom: 1.5rem;
}

.ofive-accent-line--short {
    width: 4rem;
    margin-left: auto;
    margin-right: auto;
}

/* Boutons OFIVEGE — carrés (login / accueil) */
.btn-ofive,
a.btn-ofive {
    display: inline-block;
    padding: 0.625rem 2rem;
    background: var(--ofive-blue);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1.4;
    text-align: center;
}

.btn-ofive:hover,
.btn-ofive:focus {
    background: var(--ofive-blue-dark);
    color: #fff !important;
}

.btn-ofive-outline,
a.btn-ofive-outline {
    display: inline-block;
    padding: 0.625rem 2rem;
    background: #fff;
    color: var(--ofive-blue) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--ofive-blue);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-ofive-outline:hover {
    background: rgba(30, 91, 168, 0.06);
    color: var(--ofive-blue-dark) !important;
}

.btn-ofive-light,
a.btn-ofive-light {
    display: inline-block;
    padding: 0.625rem 2rem;
    background: #fff;
    color: var(--ofive-text) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--ofive-border);
    border-radius: 0;
}

.btn-ofive-light:hover {
    background: #f3f4f6;
}

.btn-ofive.w-100 { width: 100%; }

/* Boutons portail / listes — arrondis comme OFIVEGE interne */
.btn-ofive-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: var(--ofive-blue);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-ofive-pill:hover {
    background: var(--ofive-blue-dark);
    color: #fff !important;
}

.btn-ofive-pill-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: #fff;
    color: var(--ofive-blue) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--ofive-blue);
    border-radius: 0.5rem;
}

.btn-ofive-pill-outline:hover {
    background: rgba(30, 91, 168, 0.06);
}

/* Formulaires */
.ofive-form-group {
    margin-bottom: 1.25rem;
}

.ofive-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.ofive-input,
.ofive-select,
.ofive-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--ofive-text);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0;
    outline: none;
    box-sizing: border-box;
}

.ofive-input:focus,
.ofive-select:focus,
.ofive-textarea:focus {
    border-color: var(--ofive-blue);
    box-shadow: 0 0 0 1px var(--ofive-blue);
}

.ofive-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.ofive-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--ofive-blue);
}

/* Alertes */
.ofive-alert {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.ofive-alert--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.ofive-alert--success {
    background: rgba(39, 174, 96, 0.1);
    border-color: #27AE60;
    color: #1e8449;
}

.ofive-alert--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.ofive-alert--info {
    background: rgba(30, 91, 168, 0.08);
    border-color: rgba(30, 91, 168, 0.25);
    color: var(--ofive-blue);
}

/* Accueil marketing */
.ofive-hero {
    background: var(--ofive-black);
    color: #fff;
    padding: 4rem 0 3.5rem;
}

.ofive-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ofive-hero__lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 36rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ofive-section {
    padding: 3.5rem 0;
}

.ofive-section--white {
    background: #fff;
    border-bottom: 1px solid var(--ofive-border);
}

.ofive-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ofive-text);
    margin-bottom: 0.5rem;
}

.ofive-section-title::after {
    content: "";
    display: block;
    width: 5rem;
    height: 3px;
    background: var(--ofive-blue);
    margin-top: 0.5rem;
}

.ofive-stat-card {
    background: #fff;
    border: 1px solid var(--ofive-border);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.ofive-feature-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 91, 168, 0.12);
    color: var(--ofive-blue);
    margin-bottom: 0.75rem;
}

.ofive-cta-box {
    background: #153E7A;
    color: #fff;
    border: 1px solid var(--ofive-border);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.ofive-muted {
    color: var(--ofive-text-muted);
    font-size: 0.875rem;
}

.ofive-muted small,
small.ofive-muted {
    font-size: 0.75rem;
}

.ofive-link {
    color: var(--ofive-blue);
    text-decoration: none;
}

.ofive-link:hover {
    color: var(--ofive-blue-dark);
    text-decoration: underline;
}

.ofive-wrap {
    max-width: 36rem;
    width: 100%;
    margin: 0 auto;
}

.ofive-wrap--wide {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

a.btn-ofive-outline[style*="border-color:rgba(255"] {
    background: transparent;
}

a.btn-ofive-outline[style*="border-color:rgba(255"]:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.ofive-intro-center {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ofive-intro-center h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.ofive-intro-center p {
    color: #4b5563;
    margin: 0;
}
