/* ==============================================
   GreenForge Conseil - v2 Split-Card Design
   ============================================== */

:root {
    --gf-green-dark: #1e5a3a;
    --gf-green-accent: #059669;
    --gf-orange: #ea6d3f;
    --gf-stone-50: #fafaf9;
    --gf-gray-200: #e5e7eb;
    --gf-gray-300: #d1d5db;
    --gf-gray-400: #9ca3af;
    --gf-gray-600: #4b5563;
    --gf-gray-700: #374151;
    --gf-gray-800: #1f2937;
    --gf-gray-900: #111827;
}

/* --- Page wrapper --- */
#gf_conseil_wrapper {
    background: #f8f8f6;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}

/* --- Header --- */
.gf-header {
    padding: 1.5rem 2rem 1rem;
}
@media (min-width: 768px) {
    .gf-header { padding: 2rem 2rem 1rem; }
}

.gf-header-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gf-orange);
    margin-bottom: 0.5rem;
}

.gf-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gf-green-dark);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
@media (min-width: 768px) {
    .gf-header-title { font-size: 2.25rem; }
}

.gf-header-subtitle {
    font-size: 1rem;
    color: var(--gf-gray-600);
    margin-bottom: 0;
}

/* Header nav: counter + buttons */
.gf-header-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gf-counter {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.gf-counter-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gf-gray-900);
}
.gf-counter-sep,
.gf-counter-total {
    font-size: 1.5rem;
    color: var(--gf-gray-400);
}

.gf-nav-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--gf-gray-300);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gf-gray-700);
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.8rem;
}
.gf-nav-circle:hover {
    border-color: var(--gf-gray-400);
    background: #f9fafb;
}
.gf-nav-circle.gf-disabled {
    border-color: var(--gf-gray-200);
    color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.5;
}
.gf-nav-circle.gf-disabled:hover {
    background: transparent;
    border-color: var(--gf-gray-200);
}
@media (min-width: 768px) {
    .gf-nav-circle { width: 48px; height: 48px; }
}

/* --- Split Card --- */
.gf-split-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
                0 4px 16px rgba(0, 0, 0, 0.06);
}
@media (min-width: 768px) {
    .gf-split-card { border-radius: 1.25rem; }
}

.gf-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 340px;
}
@media (min-width: 992px) {
    .gf-split-grid {
        grid-template-columns: 1fr 1fr;
        height: 420px;
    }
}

/* --- Left panel (colored) --- */
.gf-panel-left {
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: linear-gradient(135deg, #059669, #065f46);
}
@media (min-width: 768px) {
    .gf-panel-left { padding: 2rem; }
}

.gf-panel-left-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.gf-panel-left-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.gf-panel-left-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #059669, #065f46);
    opacity: 0.85;
}

/* Big watermark number */
.gf-watermark {
    position: absolute;
    top: 0.25rem; right: 0.75rem;
    font-size: 90px;
    font-weight: 700;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    user-select: none;
    z-index: 2;
}
@media (min-width: 768px) {
    .gf-watermark { font-size: 130px; top: 0.5rem; right: 1.5rem; }
}

/* Category label with line */
.gf-category {
    position: relative; z-index: 10;
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem;
}
.gf-category-line {
    width: 2rem; height: 1px; background: rgba(255,255,255,0.4);
}
.gf-category-text {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .gf-category-text { font-size: 0.7rem; }
}

/* Bottom content */
.gf-panel-left-bottom {
    position: relative; z-index: 10;
}
.gf-slide-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .gf-slide-title { font-size: 1.875rem; }
}
@media (min-width: 1200px) {
    .gf-slide-title { font-size: 2.25rem; }
}

/* Badges */
.gf-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.625rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 0.375rem;
    border: 1px solid rgba(255,255,255,0.15);
}
@media (min-width: 768px) {
    .gf-badge { padding: 0.4rem 0.75rem; }
}
.gf-badge i {
    color: #fff;
    font-size: 0.875rem;
}
.gf-badge-text {
    font-size: 0.675rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0;
}

/* --- Right panel (light) --- */
.gf-panel-right {
    background: #fff;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
@media (min-width: 768px) {
    .gf-panel-right { padding: 2rem 2.5rem; }
}

/* Section header (dot + label + line) */
.gf-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.gf-section-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gf-green-accent);
    flex-shrink: 0;
}
.gf-section-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gf-green-accent);
    margin-bottom: 0;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .gf-section-label { font-size: 0.7rem; }
}
.gf-section-line {
    flex: 1;
    height: 1px;
    background: var(--gf-gray-200);
}

/* Description text */
.gf-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gf-gray-800);
    font-weight: 500;
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .gf-description { font-size: 1rem; }
}

/* Point rows */
.gf-enjeu-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.875rem;
    opacity: 1;
    transform: translateY(0);
}
.gf-enjeu-row:last-child { margin-bottom: 0; }

/* Animation: hidden by default, revealed by JS class */
.gf-enjeu-row.gf-animate {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.gf-enjeu-row.gf-animate.gf-visible {
    opacity: 1;
    transform: translateY(0);
}

.gf-enjeu-dot {
    width: 6px; height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--gf-green-accent);
    margin-top: 0.45rem;
}
.gf-enjeu-text {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--gf-gray-700);
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .gf-enjeu-text { font-size: 0.9rem; }
}

/* --- Dot navigation below card --- */
.gf-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1.25rem;
    padding-bottom: 1rem;
}
.gf-dot {
    height: 6px;
    border-radius: 3px;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}
.gf-dot.gf-dot-active {
    width: 28px;
    background: var(--gf-green-dark);
}
.gf-dot.gf-dot-inactive {
    width: 6px;
    background: #d1d5db;
}
.gf-dot.gf-dot-inactive:hover {
    background: #9ca3af;
}

/* --- Carousel --- */
#gf_conseil_slider .carousel-item {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease;
}

/* Hide default Bootstrap carousel controls */
#gf_conseil_slider .carousel-control-prev,
#gf_conseil_slider .carousel-control-next,
#gf_conseil_slider .carousel-indicators {
    display: none !important;
}

/* --- Hide old decorative artifacts (backward compat) --- */
.gf-deco-circle,
.gf-deco-corner,
.gf-deco-line-top,
.gf-deco-line-bottom,
.gf-right-accent {
    display: none !important;
}
