/* ═══════════════════════════════════════════════════════════
   GiniFollow — Design System v2
   Palette : Saphir médical · Bleu-vert professionnel · Blanc
   Typo    : Sora (corps) · DM Serif Display (titres)
   Aucun orange. Aucun violet générique.
═══════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
    /* Couleurs principales */
    --gf-900: #0a2233;
    --gf-800: #0d3044;
    --gf-700: #104158;
    --gf-600: #145470;
    --gf-500: #1a6f91;   /* primaire */
    --gf-400: #2589b0;
    --gf-300: #4da6ca;
    --gf-200: #9dd1e8;
    --gf-100: #d6eef7;
    --gf-50:  #eef7fb;

    /* Teinte teal complémentaire (accents) */
    --gf-teal-600: #0d6760;
    --gf-teal-500: #0f8680;
    --gf-teal-100: #d2f0ee;

    /* Sémantique */
    --gf-primary:     var(--gf-500);
    --gf-primary-dk:  var(--gf-700);
    --gf-primary-lt:  var(--gf-100);
    --gf-accent:      var(--gf-teal-500);
    --gf-text:        #0e2535;
    --gf-text-muted:  #5c7d90;
    --gf-border:      #c8dfe9;
    --gf-surface:     #ffffff;
    --gf-bg:          #f4f9fc;

    /* Shadows */
    --gf-shadow-sm: 0 2px 8px rgba(10,60,90,.07);
    --gf-shadow-md: 0 8px 24px rgba(10,60,90,.10);
    --gf-shadow-lg: 0 20px 50px rgba(10,60,90,.13);

    /* Radii */
    --gf-radius-sm: 8px;
    --gf-radius:    14px;
    --gf-radius-lg: 22px;
    --gf-radius-xl: 32px;

    /* Motion */
    --gf-ease: cubic-bezier(.4,0,.2,1);
    --gf-fast: 180ms;
    --gf-med:  320ms;
}

/* ─── Reset / Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.gf-body {
    font-family: "Sora", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--gf-text);
    background: var(--gf-bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "DM Serif Display", Georgia, serif;
    line-height: 1.2;
    color: var(--gf-900);
}

/* Override Bootstrap display classes */
.display-4, .display-5, .display-6 {
    font-family: "DM Serif Display", Georgia, serif;
    letter-spacing: -0.3px;
}

a { color: var(--gf-primary); transition: color var(--gf-fast) var(--gf-ease); }
a:hover { color: var(--gf-primary-dk); }

img { max-width: 100%; }

/* ─── Scrollbar (optionnel, WebKit) ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gf-200); border-radius: 99px; }

/* ═══════════════════════════════════
   HEADER / NAVBAR
═══════════════════════════════════ */
.gf-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border-bottom: 1px solid rgba(200,223,233,.6);
    transition: box-shadow var(--gf-med) var(--gf-ease);
}

.gf-header.scrolled {
    box-shadow: 0 4px 20px rgba(10,60,90,.10);
    border-bottom-color: var(--gf-border);
}

.gf-header-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--gf-400), var(--gf-teal-500));
}

.gf-navbar {
    padding-top: .85rem;
    padding-bottom: .85rem;
}

/* Brand */
.gf-brand { text-decoration: none !important; gap: .75rem !important; }
.gf-brand:hover .gf-brand-name { color: var(--gf-primary); }

.gf-brand-icon {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--gf-radius-sm);
    background: linear-gradient(135deg, var(--gf-100), var(--gf-50));
    border: 1.5px solid var(--gf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: var(--gf-shadow-sm);
    transition: transform var(--gf-med) var(--gf-ease), box-shadow var(--gf-med) var(--gf-ease);
}

.gf-brand:hover .gf-brand-icon {
    transform: translateY(-1px);
    box-shadow: var(--gf-shadow-md);
}

.gf-brand-icon--footer {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.15);
}

.gf-brand-icon--footer .gf-logo-img {
    width: 28px;
    height: 28px;
}

.gf-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Pulsing ring on logo (decorative, soft) */
.gf-brand-pulse {
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid var(--gf-300);
    opacity: 0;
    animation: gfPulse 3s ease-in-out infinite;
}

@keyframes gfPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50%       { opacity: .35; transform: scale(1.06); }
}

.gf-brand-text { display: flex; flex-direction: column; line-height: 1; }

.gf-brand-name {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .3px;
    color: var(--gf-800);
    transition: color var(--gf-fast) var(--gf-ease);
}

.gf-brand-name--footer { color: #fff; font-size: 1.3rem; }

.gf-brand-tagline {
    font-size: .68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gf-text-muted);
    margin-top: 2px;
}

.gf-brand-tagline--footer { color: rgba(255,255,255,.55); }

/* Nav links */
.gf-nav-link {
    font-family: "Sora", sans-serif;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gf-700) !important;
    padding: .45rem .75rem !important;
    border-radius: var(--gf-radius-sm);
    position: relative;
    transition: color var(--gf-fast) var(--gf-ease), background var(--gf-fast) var(--gf-ease);
    text-decoration: none;
}

.gf-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 1.5rem);
    height: 2px;
    background: var(--gf-primary);
    border-radius: 99px;
    transition: transform var(--gf-med) var(--gf-ease);
}

.gf-nav-link:hover,
.gf-nav-link.active {
    color: var(--gf-primary) !important;
    background: var(--gf-50);
}

.gf-nav-link.active::after,
.gf-nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

/* Custom toggler */
.gf-toggler {
    border: none;
    background: transparent;
    padding: .35rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.gf-toggler-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gf-700);
    border-radius: 99px;
    transition: transform var(--gf-med) var(--gf-ease), opacity var(--gf-med) var(--gf-ease);
}

/* Auth zone */
.gf-auth-zone { margin-left: 0; }

.gf-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--gf-border);
    object-fit: cover;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--gf-600);
    background: var(--gf-50);
}

.gf-auth-name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--gf-800);
}

.gf-auth-user { padding: .35rem .6rem; border-radius: var(--gf-radius-sm); transition: background var(--gf-fast); }
.gf-auth-user:hover { background: var(--gf-50); }

/* ─── Bouton Utilisateur Connecté ─── */
.gf-user-btn {
    padding: 0.38rem 0.85rem;
    background: linear-gradient(135deg, rgba(26, 111, 145, 0.07), rgba(26, 111, 145, 0.14));
    border: 1px solid var(--gf-border, rgba(26, 111, 145, 0.25));
    border-radius: 50rem;
    transition: all 0.22s ease;
    max-width: 230px;
}
.gf-user-btn:hover {
    background: linear-gradient(135deg, rgba(26, 111, 145, 0.15), rgba(26, 111, 145, 0.26));
    border-color: var(--gf-500, #1a6f91);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 111, 145, 0.18) !important;
}
.gf-avatar--btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.gf-user-btn__name {
    font-size: 0.82rem;
    color: var(--gf-800, #0a2233);
    max-width: 140px;
    line-height: 1.15;
}
.gf-user-btn__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gf-600, #1a6f91);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

/* ─── Buttons ─── */
.gf-btn-primary {
    font-family: "Sora", sans-serif;
    font-size: .87rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, var(--gf-500), var(--gf-700));
    border: none;
    border-radius: var(--gf-radius-sm);
    padding: .52rem 1.1rem;
    box-shadow: 0 4px 14px rgba(26,111,145,.25);
    transition: transform var(--gf-fast) var(--gf-ease), box-shadow var(--gf-fast) var(--gf-ease), filter var(--gf-fast);
    text-decoration: none !important;
    white-space: nowrap;
}

.gf-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(26,111,145,.32);
    filter: brightness(1.05);
    color: #fff !important;
}

.gf-btn-ghost {
    font-family: "Sora", sans-serif;
    font-size: .87rem;
    font-weight: 600;
    color: var(--gf-600) !important;
    background: transparent;
    border: 1.5px solid var(--gf-border);
    border-radius: var(--gf-radius-sm);
    padding: .5rem 1rem;
    transition: all var(--gf-fast) var(--gf-ease);
    white-space: nowrap;
}

.gf-btn-ghost:hover {
    border-color: var(--gf-300);
    background: var(--gf-50);
    color: var(--gf-primary) !important;
}

/* Bootstrap btn overrides (for template compatibility) */
.btn.btn-primary, .btn-primary {
    font-family: "Sora", sans-serif;
    font-weight: 600;
    font-size: .9rem;
    background: linear-gradient(135deg, var(--gf-500), var(--gf-700));
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(26,111,145,.22);
    transition: all var(--gf-med) var(--gf-ease);
    color: #fff !important;
}

.btn.btn-primary:hover, .btn-primary:hover {
    background: linear-gradient(135deg, var(--gf-700), var(--gf-900));
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(26,111,145,.30);
    color: #fff !important;
}

.btn.btn-outline-primary, .btn-outline-primary {
    font-family: "Sora", sans-serif;
    font-weight: 600;
    font-size: .9rem;
    color: var(--gf-primary) !important;
    border-color: var(--gf-300);
    transition: all var(--gf-med) var(--gf-ease);
}

.btn.btn-outline-primary:hover, .btn-outline-primary:hover {
    background: var(--gf-primary);
    border-color: var(--gf-primary);
    color: #fff !important;
    transform: translateY(-1px);
}

.btn.btn-outline-light { border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.9) !important; }
.btn.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); color: #fff !important; }

.btn.btn-light {
    background: #fff;
    color: var(--gf-800) !important;
    font-weight: 600;
    font-family: "Sora", sans-serif;
    border-color: rgba(255,255,255,.3);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transition: all var(--gf-med);
}

.btn.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }

.btn.btn-outline-secondary, .gf-btn-outline-secondary {
    font-family: "Sora", sans-serif;
    font-weight: 600;
    font-size: .87rem;
    color: var(--gf-text-muted) !important;
    border-color: var(--gf-border);
    transition: all var(--gf-fast);
}

.btn.btn-outline-secondary:hover {
    background: var(--gf-50);
    color: var(--gf-700) !important;
}

/* ─── Messages / Alerts ─── */
.gf-messages { position: relative; z-index: 100; }

.gf-alert {
    background: var(--gf-surface);
    border-radius: var(--gf-radius-sm);
    border: 1.5px solid var(--gf-border);
    padding: .9rem 1.1rem;
    margin-bottom: .65rem;
    font-size: .9rem;
    font-weight: 500;
    box-shadow: var(--gf-shadow-sm);
}

.gf-alert-success { border-color: #a7d9b8; background: #f0faf3; color: #1a6135; }
.gf-alert-danger  { border-color: #f4b8be; background: #fff5f5; color: #892b35; }
.gf-alert-warning { border-color: #f0d68c; background: #fffcee; color: #7c5d14; }
.gf-alert-info    { border-color: var(--gf-200); background: var(--gf-50); color: var(--gf-700); }

/* Bootstrap alert compatibility */
.alert { border-radius: var(--gf-radius-sm); font-size: .9rem; }
.alert-success { background: #f0faf3; border-color: #a7d9b8; color: #1a6135; }
.alert-danger  { background: #fff5f5; border-color: #f4b8be; color: #892b35; }
.alert-warning { background: #fffcee; border-color: #f0d68c; color: #7c5d14; }
.alert-info    { background: var(--gf-50); border-color: var(--gf-200); color: var(--gf-700); }

/* ═══════════════════════════════════
   PAGE HEADER (breadcrumb pages)
═══════════════════════════════════ */
.page-header {
    position: relative;
    background: url(../images/ginni2.jpg) center/cover no-repeat;
    overflow: hidden;
    margin-bottom: 3rem;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(10,34,51,.88) 0%, rgba(20,84,112,.72) 100%);
}

.page-header .container { position: relative; z-index: 1; }

/* Fil d'Ariane (pill sombre — jamais bg-white sur page-header) */
.gf-breadcrumb-wrap {
    display: inline-block;
    animation: gfBreadcrumbIn 0.55s var(--gf-ease) both;
}
.gf-breadcrumb-pill {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    padding: 0.55rem 1.2rem;
    margin: 0;
    background: rgba(8, 28, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.gf-breadcrumb-pill .breadcrumb-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.gf-breadcrumb-pill .breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    transition: color var(--gf-fast), transform var(--gf-fast);
}
.gf-breadcrumb-pill .breadcrumb-item a:hover {
    color: #fff !important;
    transform: translateY(-1px);
}
.gf-breadcrumb-pill .breadcrumb-item.active {
    color: #fff !important;
    font-weight: 600;
}
.gf-breadcrumb-pill .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}
.gf-breadcrumb-home {
    font-size: 0.95rem;
    opacity: 0.95;
}
@keyframes gfBreadcrumbIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.gf-hero {
    position: relative;
    overflow: hidden;
}

.gf-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--gf-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* ═══════════════════════════════════
   CARDS
═══════════════════════════════════ */
.card,
.medical-card {
    border-radius: var(--gf-radius) !important;
    border: 1.5px solid var(--gf-border) !important;
    box-shadow: var(--gf-shadow-sm);
    transition: box-shadow var(--gf-med) var(--gf-ease), transform var(--gf-med) var(--gf-ease);
    background: var(--gf-surface) !important;
}

.card:hover, .medical-card:hover {
    box-shadow: var(--gf-shadow-md);
    transform: translateY(-2px);
}

/* Volet cards */
.gf-volet-card {
    border-radius: var(--gf-radius-lg) !important;
    border: 1.5px solid var(--gf-border) !important;
    padding: 2.5rem;
    height: 100%;
    transition: all var(--gf-med) var(--gf-ease);
    background: var(--gf-surface);
}

.gf-volet-card:hover {
    box-shadow: var(--gf-shadow-md);
    transform: translateY(-3px);
    border-color: var(--gf-300) !important;
}

.gf-volet-card--accent {
    background: linear-gradient(145deg, var(--gf-50), #fff);
    border-color: var(--gf-200) !important;
}

/* Icon box */
.gf-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--gf-radius-sm);
    background: linear-gradient(135deg, var(--gf-500), var(--gf-700));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(26,111,145,.28);
}

.gf-icon-box--sm {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    border-radius: 10px;
}

/* Step cards */
.gf-step-item {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--gf-50);
    background: var(--gf-surface);
    transition: background var(--gf-fast);
}

.gf-step-item:last-child { border-bottom: none; }
.gf-step-item:nth-child(even) { background: var(--gf-bg); }

.gf-step-badge {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gf-400), var(--gf-600));
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(26,111,145,.25);
}

/* Maladie pill cards */
.gf-disease-card {
    background: var(--gf-surface);
    border: 1.5px solid var(--gf-border);
    border-radius: var(--gf-radius);
    padding: 1rem .85rem;
    text-align: center;
    transition: all var(--gf-med) var(--gf-ease);
    height: 100%;
}

.gf-disease-card:hover {
    border-color: var(--gf-300);
    background: var(--gf-50);
    transform: translateY(-2px);
    box-shadow: var(--gf-shadow-sm);
}

/* Slot / agenda */
.slot-item {
    background: var(--gf-bg);
    border: 1.5px solid var(--gf-border);
    border-radius: var(--gf-radius-sm);
    padding: .85rem 1rem;
    transition: border-color var(--gf-fast), box-shadow var(--gf-fast);
}

.slot-item:hover { border-color: var(--gf-300); box-shadow: var(--gf-shadow-sm); }

/* RDV mode cards */
.gf-rdv-card {
    background: var(--gf-bg);
    border: 1.5px solid var(--gf-border);
    border-radius: var(--gf-radius);
    padding: 1.4rem 1.3rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all var(--gf-med) var(--gf-ease);
}

.gf-rdv-card:hover {
    border-color: var(--gf-300);
    background: var(--gf-50);
    transform: translateX(3px);
}

/* ═══════════════════════════════════
   SECTION HELPERS
═══════════════════════════════════ */
.gf-section-label {
    font-family: "Sora", sans-serif;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--gf-primary);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.gf-section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gf-primary);
    border-radius: 99px;
    flex-shrink: 0;
}

.gf-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gf-border), transparent);
    margin: 3rem 0;
}

/* Hero note / disclaimer */
.hero-note {
    background: rgba(255,255,255,.94) !important;
    border: 1.5px solid rgba(200,223,233,.7) !important;
    border-radius: var(--gf-radius-sm);
    backdrop-filter: blur(4px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.85);
    border: 1.5px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    border-radius: 99px;
    padding: .35rem 1rem;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .5px;
    backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════
   CTA / PROMO BLOCK
═══════════════════════════════════ */
.gf-cta-block {
    background: linear-gradient(135deg, var(--gf-800) 0%, var(--gf-600) 50%, var(--gf-teal-600) 100%);
    border-radius: var(--gf-radius-xl);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

.gf-cta-block::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}

.gf-cta-block::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    pointer-events: none;
}

/* ═══════════════════════════════════
   FORFAIT CARDS
═══════════════════════════════════ */
.gf-forfait-card {
    border-radius: var(--gf-radius-lg) !important;
    border: 1.5px solid var(--gf-border) !important;
    padding: 2rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--gf-med) var(--gf-ease);
    background: var(--gf-surface);
}

.gf-forfait-card:hover {
    border-color: var(--gf-300) !important;
    box-shadow: var(--gf-shadow-lg);
    transform: translateY(-4px);
}

.gf-forfait-card--featured {
    background: linear-gradient(145deg, var(--gf-800), var(--gf-600));
    border-color: transparent !important;
    color: #fff;
}

.gf-forfait-card--featured h3,
.gf-forfait-card--featured p,
.gf-forfait-card--featured span { color: rgba(255,255,255,.85); }

.gf-forfait-price {
    font-family: "DM Serif Display", serif;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--gf-primary);
}

.gf-forfait-card--featured .gf-forfait-price { color: #fff; }

/* ═══════════════════════════════════
   SOCIAL BADGES
═══════════════════════════════════ */
.gf-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.75) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: all var(--gf-fast) var(--gf-ease);
    text-decoration: none !important;
}

.gf-social-btn:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.5);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Inline social badges (section) */
.gf-social-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--gf-bg);
    border: 1.5px solid var(--gf-border);
    border-radius: var(--gf-radius-sm);
    padding: .45rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gf-700);
    transition: all var(--gf-fast);
}

.gf-social-badge:hover {
    border-color: var(--gf-300);
    background: var(--gf-50);
    transform: translateY(-1px);
    box-shadow: var(--gf-shadow-sm);
    text-decoration: none;
    color: var(--gf-primary);
}

/* ═══════════════════════════════════
   RESSOURCES ÉDUCATIVES
═══════════════════════════════════ */
.gf-ressource-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--gf-primary);
    background: var(--gf-50);
    border: 1px solid var(--gf-100);
    border-radius: 99px;
    padding: .2rem .65rem;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.gf-footer { background: linear-gradient(150deg, var(--gf-900) 0%, var(--gf-800) 55%, #0b3040 100%); }
.gf-footer-top { border-bottom: 1px solid rgba(255,255,255,.08); }
.gf-footer-bottom { }

.gf-footer-heading {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255,255,255,.45);
    margin-bottom: 1.1rem;
}

.gf-footer-links { list-style: none; padding: 0; margin: 0; }
.gf-footer-links li { margin-bottom: .55rem; }
.gf-footer-links a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color var(--gf-fast), transform var(--gf-fast);
    display: inline-block;
}
.gf-footer-links a:hover { color: #fff; transform: translateX(3px); }

.gf-footer-muted { color: rgba(255,255,255,.45); }

.gf-footer-medical-note {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(157, 209, 232, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.gf-footer-medical-note__title {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fff;
    margin-bottom: 0.75rem;
}
.gf-footer-medical-note__text {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    margin: 0;
}
.gf-footer-medical-note__text .bi {
    color: var(--gf-200);
}

/* ═══════════════════════════════════
   UTILITY
═══════════════════════════════════ */
.text-primary { color: var(--gf-primary) !important; }
.bg-primary   { background-color: var(--gf-primary) !important; }

.bg-light {
    background-color: var(--gf-bg) !important;
}

.rounded-3 { border-radius: var(--gf-radius) !important; }
.shadow-sm  { box-shadow: var(--gf-shadow-sm) !important; }
.shadow     { box-shadow: var(--gf-shadow-md) !important; }

.fw-semibold { font-weight: 600 !important; }

/* Badge overrides */
.badge.bg-primary { background: var(--gf-primary) !important; }
.badge.bg-primary.bg-opacity-10 {
    background: var(--gf-50) !important;
    color: var(--gf-primary) !important;
    border: 1px solid var(--gf-100);
}

/* ═══════════════════════════════════
   RESPONSIVE — Tablet (< 992px)
═══════════════════════════════════ */
@media (max-width: 991.98px) {
    .gf-navbar { padding-top: .65rem; padding-bottom: .65rem; }
    .gf-brand-icon { width: 44px; height: 44px; }
    .gf-logo-img { width: 30px; height: 30px; }
    .gf-brand-name { font-size: 1rem; }
    .gf-brand-tagline { display: none; }

    /* Expanded menu */
    #navbarCollapse {
        padding: 1rem .25rem .75rem;
        border-top: 1px solid var(--gf-border);
        margin-top: .65rem;
    }

    .navbar-nav { gap: 2px !important; }

    .gf-nav-link {
        font-size: .92rem;
        padding: .65rem .85rem !important;
        border-radius: var(--gf-radius-sm);
    }

    .gf-nav-link::after { display: none; }
    .gf-nav-link.active { background: var(--gf-50); color: var(--gf-primary) !important; }

    .gf-auth-zone {
        padding-top: .75rem;
        border-top: 1px solid var(--gf-border);
        gap: .5rem !important;
    }

    .gf-btn-primary, .gf-btn-ghost { width: 100%; text-align: center; justify-content: center; }

    /* Sections */
    .display-4 { font-size: 2rem !important; }
    .display-5 { font-size: 1.75rem !important; }
    .display-6 { font-size: 1.45rem !important; }

    .page-header .display-4,
    .page-header .display-5 { font-size: 1.75rem !important; }

    .gf-volet-card { padding: 1.75rem; }
    .gf-cta-block  { padding: 2.25rem 1.5rem; border-radius: var(--gf-radius-lg); }

    .gf-footer .container { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}

/* ═══════════════════════════════════
   RESPONSIVE — Mobile (< 576px)
═══════════════════════════════════ */
@media (max-width: 575.98px) {
    .gf-brand-icon { width: 40px; height: 40px; }
    .gf-logo-img  { width: 27px; height: 27px; }
    .gf-brand-name { font-size: .95rem; }

    .display-4 { font-size: 1.75rem !important; line-height: 1.2; }
    .display-5 { font-size: 1.55rem !important; }
    .display-6 { font-size: 1.3rem  !important; }

    .gf-cta-block { padding: 1.75rem 1.25rem; }
    .gf-volet-card { padding: 1.35rem; }
    .gf-forfait-card { padding: 1.5rem 1.25rem; }

    .btn.btn-lg {
        font-size: .9rem;
        padding: .65rem 1.1rem !important;
    }

    .hero-note { font-size: .82rem; }
}

/* ═══════════════════════════════════
   DASHBOARD PROFESSIONAL LAYOUT
═══════════════════════════════════ */
.dash-wrapper {
    display: flex;
    min-height: calc(100vh - 80px);
    background: #f8fbff;
}

/* Sidebar */
.dash-sidebar {
    width: 280px;
    background: var(--gf-900);
    color: #fff;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: all var(--gf-med);
    flex-shrink: 0;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.25rem;
    color: rgba(255,255,255,.65) !important;
    text-decoration: none !important;
    border-radius: var(--gf-radius-sm);
    font-weight: 500;
    font-size: .92rem;
    transition: all var(--gf-fast);
}

.dash-nav-link i { font-size: 1.15rem; width: 24px; text-align: center; }

.dash-nav-link:hover,
.dash-nav-link.active {
    background: rgba(255,255,255,.08);
    color: #fff !important;
}

.dash-nav-link.active {
    background: var(--gf-primary);
    box-shadow: 0 4px 12px rgba(26,111,145,.3);
}

/* Main Content */
.dash-main {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Stats Cards */
.stat-card {
    background: #fff;
    border-radius: var(--gf-radius);
    padding: 1.5rem;
    border: 1px solid var(--gf-border);
    height: 100%;
    transition: transform var(--gf-fast);
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--gf-shadow-md); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Notification Bell */
.nav-notif {
    position: relative;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    border: 1px solid var(--gf-border);
    transition: all var(--gf-fast);
}

.nav-notif:hover { background: var(--gf-50); border-color: var(--gf-300); }

.nav-notif .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    border: 2px solid #fff;
}

.gf-auth-zone .gf-nav-notif-dropdown {
    flex-shrink: 0;
}

.gf-nav-notif-dropdown--dash .nav-notif {
    border-color: var(--gf-border);
}

/* Profiles / Widgets */
.dash-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gf-primary-lt);
}

.dash-welcome-card {
    background: linear-gradient(135deg, var(--gf-800) 0%, var(--gf-600) 100%);
    color: #fff;
    border-radius: var(--gf-radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.dash-welcome-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.dash-help {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--gf-600);
    margin-bottom: 0;
}
.dash-help strong { color: var(--gf-800); }

.dash-progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(26, 111, 145, 0.12);
}
.dash-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gf-primary), var(--gf-500));
    transition: width 0.45s ease;
}

.dash-settings-nav {
    position: sticky;
    top: 1rem;
}
.dash-settings-nav-link {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    color: var(--gf-800);
    text-decoration: none;
    margin-bottom: 0.15rem;
    font-weight: 500;
}
.dash-settings-nav-link:hover {
    background: var(--gf-50);
    color: var(--gf-primary);
}

.dash-section-card {
    scroll-margin-top: 5.5rem;
}

.gf-star-row .gf-star {
    display: inline-flex;
    transition: transform 0.2s var(--gf-ease);
}
.gf-star-row .gf-star--on {
    color: #d4a017;
    text-shadow: 0 0 12px rgba(212, 160, 23, 0.35);
    transform: scale(1.08);
}
.gf-star-row .gf-star--off {
    color: #c8dfe9;
    opacity: 0.65;
}

/* Animation lorsqu’au moins une nouvelle étoile vient d’être accordée (chargement du dashboard) */
.gf-star-row--celebrate .gf-star {
    animation: gfStarCelebrate 1.15s var(--gf-ease) both;
}
.gf-star-row--celebrate .gf-star:nth-child(1) { animation-delay: 0s; }
.gf-star-row--celebrate .gf-star:nth-child(2) { animation-delay: 0.06s; }
.gf-star-row--celebrate .gf-star:nth-child(3) { animation-delay: 0.12s; }
.gf-star-row--celebrate .gf-star:nth-child(4) { animation-delay: 0.18s; }
.gf-star-row--celebrate .gf-star:nth-child(5) { animation-delay: 0.24s; }
.gf-star-row--celebrate .gf-star:nth-child(6) { animation-delay: 0.3s; }

@keyframes gfStarCelebrate {
    0% {
        transform: scale(1);
        filter: none;
    }
    35% {
        transform: scale(1.18);
        color: var(--gf-teal-500);
        filter: drop-shadow(0 0 10px rgba(15, 134, 128, 0.45));
    }
    70% {
        transform: scale(1.06);
        color: #d4a017;
        filter: drop-shadow(0 0 8px rgba(212, 160, 23, 0.35));
    }
    100% {
        transform: scale(1);
        filter: none;
    }
}

/* Pages connexion / inscription : zone centrale sans casser les toasts */
body.gf-auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f6f9ff;
}
body.gf-auth-body .gf-auth-main {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0;
    box-sizing: border-box;
}

/* Logo connexion / inscription — même rendu que la navbar (ginni4.png, object-fit contain) */
.gf-auth-brand__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--gf-radius-sm);
    background: linear-gradient(135deg, var(--gf-100), var(--gf-50));
    border: 1.5px solid var(--gf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gf-shadow-sm);
}
.gf-auth-brand__icon .gf-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

/* ═══════════════════════════════════
   TOASTS (messages Django centrés)
═══════════════════════════════════ */
#gf-toast-root.gf-toast-root {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 2147483000 !important;
}
.gf-toast-root {
    position: fixed;
    inset: 0;
    z-index: 10850;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    pointer-events: none;
    padding: 1.5rem;
}
.gf-toast {
    pointer-events: auto;
    position: relative;
    max-width: min(420px, 92vw);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 2.35rem 1.15rem 1.1rem;
    border-radius: var(--gf-radius);
    background: #fff;
    border: 1px solid var(--gf-border);
    box-shadow: var(--gf-shadow-lg);
    animation: gfToastIn 0.45s var(--gf-ease) both;
    font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.gf-toast--out {
    animation: gfToastOut 0.4s var(--gf-ease) forwards;
}
.gf-toast--success { border-color: rgba(15, 134, 128, 0.45); background: linear-gradient(135deg, #fff, #f0faf9); }
.gf-toast--error { border-color: rgba(185, 28, 28, 0.35); background: linear-gradient(135deg, #fff, #fff5f5); }
.gf-toast--warning { border-color: rgba(180, 120, 0, 0.35); background: linear-gradient(135deg, #fff, #fffbf0); }
.gf-toast--info { border-color: rgba(26, 111, 145, 0.35); }
.gf-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.gf-toast--success .gf-toast-icon { background: rgba(15, 134, 128, 0.12); color: var(--gf-teal-600); }
.gf-toast--error .gf-toast-icon { background: rgba(185, 28, 28, 0.1); color: #b91c1c; }
.gf-toast--warning .gf-toast-icon { background: rgba(180, 120, 0, 0.12); color: #a16207; }
.gf-toast--info .gf-toast-icon { background: rgba(26, 111, 145, 0.12); color: var(--gf-primary); }
.gf-toast-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--gf-text);
    padding-top: 0.15rem;
}
.gf-toast-close {
    position: absolute;
    top: 0.5rem;
    right: 0.55rem;
    border: none;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--gf-text-muted);
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
}
.gf-toast-close:hover { color: var(--gf-900); background: rgba(0, 0, 0, 0.05); }

@keyframes gfToastIn {
    from { opacity: 0; transform: scale(0.88) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes gfToastOut {
    to { opacity: 0; transform: scale(0.92) translateY(-8px); }
}

/* ═══════════════════════════════════
   BLOG & À PROPOS
═══════════════════════════════════ */
.gf-blog-hero.page-header {
    background: linear-gradient(135deg, var(--gf-800), var(--gf-500) 55%, var(--gf-teal-500));
}
.page-header[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.gf-blog-figure img {
    max-height: 420px;
    object-fit: cover;
}
.gf-blog-part {
    font-size: 1.05rem;
    line-height: 1.75;
}
.gf-blog-cloture {
    padding: 1.25rem 1.35rem;
    background: var(--gf-50);
    border-radius: var(--gf-radius);
    border-left: 4px solid var(--gf-primary);
}
.gf-blog-share .gf-share-btn {
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
    border: none;
}
.gf-share-btn--facebook { background: #1877f2; }
.gf-share-btn--whatsapp { background: #25d366; }
.gf-share-btn--linkedin { background: #0a66c2; }
.gf-share-btn--twitter { background: #0f1419; }
.gf-share-btn:hover { opacity: 0.92; color: #fff; transform: translateY(-1px); }
.gf-blog-similar__thumb { height: 120px; }
.gf-blog-similar:hover {
    transform: translateY(-3px);
    box-shadow: var(--gf-shadow-md);
    transition: transform var(--gf-med), box-shadow var(--gf-med);
}
.gf-blog-card__thumb {
    height: 160px;
    background: linear-gradient(145deg, var(--gf-50), var(--gf-100));
}
.gf-blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gf-blog-card__placeholder {
    font-size: 2.5rem;
    color: var(--gf-400);
}
.gf-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gf-shadow-md);
    transition: transform var(--gf-med) var(--gf-ease), box-shadow var(--gf-med) var(--gf-ease);
}
.gf-blog-popular:hover {
    border-color: var(--gf-border) !important;
    box-shadow: var(--gf-shadow-sm);
}
.gf-blog-medical-note {
    background: var(--gf-50);
    border-left: 4px solid var(--gf-primary);
    color: var(--gf-text);
}
.gf-blog-article-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--gf-text);
}
.gf-blog-article-body h2,
.gf-blog-article-body h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}
.gf-team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gf-500), var(--gf-teal-500));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

/* Page À propos — fil d'Ariane toujours au-dessus du dégradé */
.page-header .gf-breadcrumb-slot {
    position: relative;
    z-index: 3;
}
.gf-page-header--apropos {
    margin-bottom: 0;
}

/* ═══════════════════════════════════
   ACCUEIL — HERO & SECTIONS
═══════════════════════════════════ */
.gf-hero-home {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
}
.gf-hero-home__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.gf-hero-home .container {
    position: relative;
    z-index: 2;
}
.gf-hero-home::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--gf-bg);
    clip-path: ellipse(58% 100% at 50% 100%);
    z-index: 1;
    pointer-events: none;
}
.gf-trust-bar {
    gap: 0.5rem !important;
    row-gap: 0.5rem;
}
.gf-trust-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    flex-shrink: 0;
}

/* Hero — barre de confiance lisible sur mobile (espace avant la courbe elliptique) */
@media (max-width: 767.98px) {
    .gf-hero-home {
        min-height: auto;
        overflow: visible;
        padding-bottom: 1.25rem;
    }
    .gf-hero-home .container {
        padding-bottom: 5rem;
    }
    .gf-hero-home::after {
        height: 52px;
        bottom: -6px;
        z-index: 1;
    }
    .gf-trust-bar {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100%;
        max-width: 100%;
        gap: 0.5rem !important;
        margin-top: 0.25rem;
        margin-bottom: 1rem;
        position: relative;
        z-index: 3;
    }
    .gf-trust-pill {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        white-space: normal;
    }
    section#probleme.gf-section {
        padding-top: 3.25rem !important;
    }
}
.gf-btn-glow {
    transition: transform var(--gf-fast), box-shadow var(--gf-med);
}
.gf-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25);
}
.gf-section { scroll-margin-top: 88px; }

.gf-problem-card {
    background: var(--gf-surface);
    border: 1.5px solid var(--gf-border);
    border-radius: var(--gf-radius-lg);
    padding: 1.75rem 1.5rem;
    transition: transform var(--gf-med) var(--gf-ease), box-shadow var(--gf-med) var(--gf-ease), border-color var(--gf-med);
}
.gf-problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gf-shadow-md);
    border-color: var(--gf-300);
}
.gf-problem-card__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gf-50), var(--gf-100));
    color: var(--gf-primary);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.gf-volet-card--alt {
    background: linear-gradient(160deg, #fff 0%, var(--gf-50) 100%);
    border-color: var(--gf-200) !important;
}
.gf-check-list li {
    padding: 0.35rem 0;
}

.gf-step-card {
    background: var(--gf-surface);
    border: 1.5px solid var(--gf-border);
    border-radius: var(--gf-radius-lg);
    padding: 2rem 1.5rem;
    transition: transform var(--gf-med) var(--gf-ease), box-shadow var(--gf-med);
}
.gf-step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--gf-shadow-md);
}
.gf-step-num {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gf-500), var(--gf-700));
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(26, 111, 145, 0.3);
}

/* Chiffres clés accueil */
.gf-stats {
    background: linear-gradient(135deg, var(--gf-800) 0%, var(--gf-600) 45%, var(--gf-teal-600) 100%);
    position: relative;
    overflow: hidden;
}
.gf-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.08), transparent 45%);
    pointer-events: none;
}
.gf-stats__label {
    color: rgba(255,255,255,.75);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.gf-stats-item__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}
.gf-stats-item__num {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}
.gf-stats-item__num::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.85;
    margin-left: 0.1rem;
}
.gf-stats-item__label {
    color: rgba(255,255,255,.82);
    font-size: 0.88rem;
    font-weight: 500;
}

/* Section Engagement & Partenariat */
.gf-engagement {
    background: var(--gf-surface, #f8fafc);
    border-top: 1px solid var(--gf-border, #e2e8f0);
    border-bottom: 1px solid var(--gf-border, #e2e8f0);
}
.gf-engagement-img {
    max-height: 380px;
    width: 100%;
    object-fit: cover;
}
.gf-engagement-card {
    background: #ffffff;
    border: 1px solid var(--gf-border, #e2e8f0) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gf-engagement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gf-shadow-md, 0 10px 25px rgba(0, 0, 0, 0.08)) !important;
}
.gf-engagement-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.08);
}

/* Maladies — cartes */
.gf-maladie-card {
    transition: transform var(--gf-med) var(--gf-ease), box-shadow var(--gf-med);
}
.gf-maladie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--gf-shadow-md) !important;
}
.gf-maladie-card__thumb {
    height: 140px;
    overflow: hidden;
    background: var(--gf-100);
}
.gf-maladie-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s var(--gf-ease);
}
.gf-maladie-card:hover .gf-maladie-card__img {
    transform: scale(1.06);
}

.gf-blog-card-home {
    transition: transform var(--gf-med) var(--gf-ease), box-shadow var(--gf-med);
}
.gf-blog-card-home:hover {
    transform: translateY(-4px);
    box-shadow: var(--gf-shadow-md) !important;
}

.gf-team-teaser__img {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: var(--gf-shadow-md);
    margin: 0 auto;
    display: block;
    transition: transform var(--gf-med) var(--gf-ease);
}
.gf-team-teaser:hover .gf-team-teaser__img {
    transform: scale(1.04);
}
.gf-team-home-card {
    transition: transform var(--gf-med) var(--gf-ease), box-shadow var(--gf-med);
}
.gf-team-home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gf-shadow-md) !important;
}

/* Équipe — carte photo + réseaux au survol */
.gf-team-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gf-100);
}
.gf-team-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--gf-ease);
}
.gf-team-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(10, 34, 51, 0.15), rgba(10, 34, 51, 0.88));
    opacity: 0;
    transition: opacity 0.35s var(--gf-ease);
    pointer-events: none;
}
.gf-team-card__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    transform: translateY(12px);
    transition: transform 0.35s var(--gf-ease);
}
.gf-team-card__social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gf-800);
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform var(--gf-fast), background var(--gf-fast), color var(--gf-fast);
    pointer-events: auto;
}
.gf-team-card__social-btn:hover {
    transform: translateY(-3px) scale(1.06);
    background: var(--gf-primary);
    color: #fff;
}
@media (hover: hover) {
    .gf-team-card:hover .gf-team-card__overlay,
    .gf-team-card:focus-within .gf-team-card__overlay {
        opacity: 1;
        pointer-events: auto;
    }
    .gf-team-card:hover .gf-team-card__photo,
    .gf-team-card:focus-within .gf-team-card__photo {
        transform: scale(1.06);
    }
    .gf-team-card:hover .gf-team-card__socials,
    .gf-team-card:focus-within .gf-team-card__socials {
        transform: translateY(0);
    }
}
@media (hover: none) {
    .gf-team-card__overlay {
        opacity: 1;
        pointer-events: auto;
        background: linear-gradient(180deg, transparent 40%, rgba(10, 34, 51, 0.92));
        justify-content: flex-end;
        padding-bottom: 1rem;
    }
    .gf-team-card__socials {
        transform: translateY(0);
    }
}

/* Témoignages carousel */
.gf-testimonials .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gf-400);
}
.gf-testimonials .carousel-indicators .active {
    background-color: var(--gf-primary);
}
.gf-testimonial-slide {
    background: #fff;
    min-height: 280px;
}
.gf-testimonial-slide__img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}
.gf-testimonial-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--gf-text);
}
.gf-testimonials .carousel-control-prev,
.gf-testimonials .carousel-control-next {
    width: 8%;
}

.gf-faq .accordion-button:not(.collapsed) {
    background: var(--gf-50);
    color: var(--gf-primary);
    box-shadow: none;
}
.gf-faq .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 111, 145, 0.2);
}

.gf-cta-final {
    background: linear-gradient(135deg, var(--gf-800) 0%, var(--gf-600) 45%, var(--gf-teal-600) 100%);
    position: relative;
    overflow: hidden;
}
.gf-cta-final::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .dash-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1050;
    }
    .dash-sidebar.show { left: 0; }
    .dash-main { padding: 1.25rem; }
}

/* ─── Back to top ─── */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gf-500), var(--gf-700));
    color: #fff !important;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(26,111,145,.35);
    transition: all var(--gf-fast);
    font-size: 1rem;
}

.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(26,111,145,.4); }

/* ─── Animations ─── */
.wow { visibility: hidden; }

/* ─── Dashboard : ressources & lecteur PDF ─── */
.gf-ressource-card {
    cursor: pointer;
    transition: transform var(--gf-med) var(--gf-ease), box-shadow var(--gf-med);
}
.gf-ressource-card:hover,
.gf-ressource-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(10, 60, 90, 0.12);
}
.gf-ressource-thumb {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: var(--gf-50);
}
.gf-ressource-thumb--placeholder {
    background: linear-gradient(135deg, var(--gf-50), #e8f4fa);
}
.gf-ressource-hover {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: rgba(13, 48, 68, 0.88);
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.gf-ressource-card:hover .gf-ressource-hover,
.gf-ressource-card:focus-within .gf-ressource-hover {
    opacity: 1;
}
.gf-ressource-hover-label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}
.gf-ressource-read-btn {
    pointer-events: auto;
}
.gf-reader-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1075;
    background: rgba(13, 48, 68, 0.5);
    backdrop-filter: blur(2px);
}
body.gf-reader-open,
body.gf-notif-panel-open {
    overflow: hidden;
}
.gf-reader-panel {
    position: fixed;
    z-index: 1080;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 1.25rem));
    max-height: min(88vh, 760px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--gf-border);
    box-shadow: 0 24px 60px rgba(10, 60, 90, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.gf-reader-panel--minimized {
    transform: translate(-50%, calc(-50% + 120vh));
    opacity: 0;
    pointer-events: none;
}
.gf-reader-panel__bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--gf-border);
    background: var(--gf-50);
}
.gf-reader-panel__head {
    min-width: 0;
}
.gf-reader-panel__title {
    word-break: break-word;
}
.gf-reader-panel__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
}
.gf-reader-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    min-height: 2.25rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}
.gf-reader-action.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}
.gf-reader-action-label {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
@media (max-width: 380px) {
    .gf-reader-action-label {
        display: none;
    }
    .gf-reader-action {
        min-height: 2.5rem;
    }
}
.gf-reader-action--ok {
    border-color: #198754;
    color: #198754;
}
.gf-reader-panel__badge {
    display: inline-block;
    color: var(--gf-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gf-reader-panel__body {
    overflow: auto;
    flex: 1;
    background: #f8fbff;
}
.gf-reader-pdf {
    padding: 0.75rem;
}
.gf-reader-pdf-page {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}
.gf-reader-iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
}
.gf-reader-image {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
}
.gf-reader-chip {
    position: fixed;
    z-index: 1079;
    left: 50%;
    right: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, var(--gf-500), var(--gf-700));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(26, 111, 145, 0.35);
    max-width: calc(100vw - 2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Dashboard : messages ─── */
.gf-message-item--unread {
    background: #eef6ff;
    border-left: 4px solid var(--gf-primary);
}
.gf-message-ressource {
    background: #fff;
    border: 1px dashed var(--gf-border);
}

/* ─── Dashboard : notifications ─── */
.gf-notif-list {
    background: #fff;
    border: 1px solid var(--gf-border);
}
.gf-notif-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--gf-border);
    align-items: flex-start;
}
.gf-notif-item:last-child { border-bottom: 0; }
.gf-notif-item--unread {
    background: linear-gradient(90deg, #e8f3fb 0%, #f8fbff 100%);
    border-left: 4px solid var(--gf-primary);
    padding-left: calc(1.15rem - 4px);
}
.gf-notif-item__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(26, 111, 145, 0.12);
    color: var(--gf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.gf-notif-item--unread .gf-notif-item__icon {
    background: var(--gf-primary);
    color: #fff;
}
.gf-notif-item__title {
    color: var(--gf-800);
}
.gf-notif-item--unread .gf-notif-item__title {
    color: #0a2a3d;
}
.gf-notif-item__message {
    font-size: 0.9rem;
    color: #5c7d90;
    line-height: 1.5;
    margin: 0;
}
.gf-notif-item--unread .gf-notif-item__message {
    color: #2a4a5e;
}
.gf-notif-item__date {
    color: var(--gf-primary);
    opacity: 0.85;
}
.gf-notif-badge {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
}
.gf-notif-dropdown-item--unread {
    background: #eef6ff;
}
.gf-notif-dropdown-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(26, 111, 145, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gf-notif-dropdown-msg {
    color: #2a4a5e;
    line-height: 1.45;
}

/* Panneau message (notifications) */
.gf-notif-message-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1085;
    background: rgba(13, 48, 68, 0.5);
    backdrop-filter: blur(2px);
}
.gf-notif-message-panel {
    position: fixed;
    z-index: 1090;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(480px, calc(100vw - 1.25rem));
    max-height: min(85vh, 640px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--gf-border);
    box-shadow: 0 24px 60px rgba(10, 60, 90, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.gf-notif-message-panel--minimized {
    transform: translate(-50%, calc(-50% + 120vh));
    opacity: 0;
    pointer-events: none;
}
.gf-notif-message-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--gf-border);
    background: var(--gf-50);
}
.gf-notif-action-label {
    font-size: 0.78rem;
    font-weight: 600;
    margin-left: 0.2rem;
}
@media (max-width: 479px) {
    .gf-notif-action-label {
        display: none;
    }
}
.gf-notif-message-panel__badge {
    display: block;
    color: var(--gf-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gf-notif-message-panel__body {
    overflow: auto;
    flex: 1;
}
.gf-notif-message-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gf-800);
}
.gf-notif-message-chip {
    position: fixed;
    z-index: 1089;
    left: 50%;
    right: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, var(--gf-500), var(--gf-700));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(26, 111, 145, 0.35);
    max-width: calc(100vw - 2rem);
}
