:root {

    /* =========================
       SYSTÈME DE COULEURS (SAAS MODERNE)
    ========================= */

    --bg: #0b0f17;
    --surface: rgba(255,255,255,0.04);
    --surface-2: rgba(255,255,255,0.07);

    --texte: #ffffff;
    --texte-atténué: rgba(255,255,255,0.65);

    --primaire: #22c55e;
    --primaire-foncé: #16a34a;

    --bordure: rgba(255,255,255,0.08);

    /* =========================
       OMBRES
    ========================= */

    --ombre-sm: 0 10px 30px rgba(0,0,0,0.25);
    --ombre-lg: 0 25px 60px rgba(0,0,0,0.45);

    /* =========================
       ARRONDIS
    ========================= */

    --rayon-sm: 12px;
    --rayon-md: 18px;
    --rayon-lg: 26px;
}

/* =========================
   BASE GLOBALE (SAAS CORE)
========================= */

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--texte);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* =========================
   NAVBAR (GLASS SAAS)
========================= */

.navbar-pro {
    background: rgba(10, 14, 22, 0.6);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--bordure);
    transition: all 0.3s ease;
}

.navbar-pro.navbar-scrolled {
    background: rgba(10, 14, 22, 0.9);
    box-shadow: var(--ombre-sm);
}

/* =========================
   HERO GÉNÉRIQUE (SANS IMAGE FIXE)
   👉 IMPORTANT : PAS D’IMAGE ICI
========================= */

.hero,
.hero-saas {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* fond neutre SaaS uniquement */
    background:
        radial-gradient(circle at top, rgba(34,197,94,0.15), transparent 40%),
        radial-gradient(circle at bottom, rgba(59,130,246,0.08), transparent 50%),
        var(--bg);
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    color: var(--texte-atténué);
    font-size: 16px;
}

/* =========================
   HERO IMAGES PAR PAGE (IMPORTANT)
========================= */

/* 🏠 PAGE D’ACCUEIL */
.hero-home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background:
        linear-gradient(rgba(11,15,23,0.75), rgba(11,15,23,0.92)),
        url('assets/images/index.jpg') center/cover no-repeat;
}

/* 🎓 FZA */
.hero-fza {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background:
        linear-gradient(rgba(11,15,23,0.75), rgba(11,15,23,0.92)),
        url('assets/images/fza.jpg') center/cover no-repeat;
}

/* 💼 FOPHI */
.hero-fophi {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background:
        linear-gradient(rgba(11,15,23,0.75), rgba(11,15,23,0.92)),
        url('assets/images/fophi.jpg') center/cover no-repeat;
}

.whatsapp-float{
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-float:hover{
    transform: scale(1.1);
    color: white;
}

/* =========================
   TYPOGRAPHIE
========================= */

h1, h2, h3, h4 {
    color: var(--texte);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    margin-bottom: 20px;
}

/* =========================
   CARTES SAAS
========================= */

.card,
.saas-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-lg);
    backdrop-filter: blur(16px);
    padding: 20px;
    transition: all 0.35s ease;
    box-shadow: var(--ombre-sm);
    overflow: hidden;
}

.card:hover,
.saas-card:hover {
    transform: translateY(-10px);
    background: var(--surface-2);
    box-shadow: var(--ombre-lg);
}

/* effet lumière */
.card::before,
.saas-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.06),
        transparent
    );
    transition: 0.7s;
}

.card:hover::before,
.saas-card:hover::before {
    left: 120%;
}

/* =========================
   FORMULAIRES
========================= */

form {
    background: var(--surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-lg);
    padding: 25px;
    backdrop-filter: blur(16px);
}

input, select, textarea {
    background: rgba(255, 255, 255, 0.467) !important;
    border: 1px solid var(--bordure) !important;
    color: var(--texte) !important;
    border-radius: var(--rayon-sm) !important;
    padding: 12px;
}

select.form-control,
select.form-select {
    background: rgba(255,255,255,0.08) !important;
    color: white !important;
    border: 1px solid var(--bordure) !important;
}

select option {
    background: #ffffff;
    color: #000000;
}

.top-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    flex-wrap:wrap;
    gap:15px;
}

.user-box{
    display:flex;
    align-items:center;
    gap:12px;

    background: var(--surface);
    border: 1px solid var(--bordure);

    padding:10px 15px;
    border-radius: var(--rayon-md);

    backdrop-filter: blur(16px);
    box-shadow: var(--ombre-sm);
}

.user-photo-wrapper{
    position:relative;
}

.user-photo{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;

    border:2px solid var(--primaire);
    display:block;
}

/* 🔥 POINT VERT SaaS (propre) */
.online-dot{
    position:absolute;
    bottom:2px;
    right:2px;

    width:12px;
    height:12px;
    background: var(--primaire);

    border-radius:50%;
    border:2px solid var(--bg);

    box-shadow:0 0 10px rgba(34,197,94,0.8);
}

/* TEXTE */
.user-info{
    display:flex;
    flex-direction:column;
}

.user-name{
    font-weight:600;
    font-size:14px;
    color: var(--texte);
}

.user-status{
    font-size:12px;
    color: var(--primaire);

    display:flex;
    align-items:center;
    gap:6px;
}

.user-box:hover{
    transform: translateY(-2px);
    transition: 0.2s ease;
    box-shadow: var(--ombre-lg);
}

/* petit point dans le texte */
.status-dot{
    width:7px;
    height:7px;
    background: var(--primaire);
    border-radius:50%;
    box-shadow:0 0 6px var(--primaire);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primaire) !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}

/* =========================
   BOUTONS
========================= */

.btn-success {
    background: var(--primaire);
    border: none;
    border-radius: var(--rayon-sm);
    font-weight: 600;
    transition: 0.25s ease;
}

.btn-success:hover {
    background: var(--primaire-foncé);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-radius: var(--rayon-sm);
}

/* =========================
   SECTIONS
========================= */

section {
    padding: 90px 0;
}

/* =========================
   TEXTE ATTÉNUÉ
========================= */

.text-muted {
    color: var(--texte-atténué) !important;
}

/* =========================
   WHATSAPP
========================= */

.whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primaire);
    border-radius: 50%;
    box-shadow: var(--ombre-lg);

    transition: 0.3s ease;
}

.whatsapp:hover {
    transform: scale(1.1);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    h1 {
        font-size: 28px;
    }

    section {
        padding: 60px 0;
    }

    .saas-card {
        padding: 18px;
    }
}