/* ==========================================================================
   GreenForge Conseil — All Snippets
   Covers: s_gf_why_now, s_gf_vision, s_gf_expertise,
           s_gf_case_studies, s_gf_transformation
   ========================================================================== */

/* ── Shared tokens ─────────────────────────────────────────────────────── */
:root {
    --gf-green-900:  #14532d;
    --gf-green-800:  #166534;
    --gf-green-dark: #1e5a3a;
    --gf-green-600:  #059669;
    --gf-orange:     #ea6d3f;
    --gf-stone-50:   #fafaf9;
    --gf-gray-50:    #f9fafb;
    --gf-gray-100:   #f3f4f6;
    --gf-gray-200:   #e5e7eb;
    --gf-gray-300:   #d1d5db;
    --gf-gray-400:   #9ca3af;
    --gf-gray-500:   #6b7280;
    --gf-gray-600:   #4b5563;
    --gf-gray-700:   #374151;
    --gf-gray-800:   #1f2937;
    --gf-gray-900:   #111827;
}

/* ── Shared section header ─────────────────────────────────────────────── */
.gf-section-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}
.gf-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.gf-section-lead {
    font-size: 1.1rem;
    color: var(--gf-gray-600);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .gf-section-title { font-size: 3.25rem; }
}

/* ── Shared split-card layout (why_now + case_studies) ─────────────────── */
.gf-slider-wrapper {
    background: #f8f8f6;
    padding-bottom: 1.5rem;
}
.gf-slider-header {
    padding: 1.75rem 1.5rem 1rem;
}
@media (min-width: 768px) {
    .gf-slider-header { padding: 2.25rem 2rem 1rem; }
}
.gf-slider-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gf-orange);
    margin-bottom: 0.5rem;
}
.gf-slider-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gf-green-dark);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
@media (min-width: 768px) {
    .gf-slider-title { font-size: 2.5rem; }
}
.gf-slider-subtitle {
    font-size: 1rem;
    color: var(--gf-gray-600);
    margin-bottom: 0;
}

/* Header nav (counter + buttons) */
.gf-slider-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.gf-slider-counter {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}
.gf-slider-counter-current {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gf-gray-900);
    min-width: 1.5ch;
    text-align: right;
}
.gf-slider-counter-sep,
.gf-slider-counter-total {
    font-size: 1.6rem;
    color: var(--gf-gray-400);
}

/* Shared nav buttons */
.gf-nav-btn {
    width: 44px;
    height: 44px;
    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);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.gf-nav-btn:hover:not(:disabled) {
    border-color: var(--gf-green-600);
    background: #ecfdf5;
    color: var(--gf-green-600);
}
.gf-nav-btn:disabled {
    border-color: var(--gf-gray-200);
    color: var(--gf-gray-300);
    cursor: not-allowed;
    opacity: 0.5;
}
@media (min-width: 768px) {
    .gf-nav-btn { width: 50px; height: 50px; }
}

/* Viewport / track */
.gf-slider-viewport {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.07);
}
@media (min-width: 768px) {
    .gf-slider-viewport { border-radius: 1.25rem; }
}
.gf-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.gf-slide {
    flex: 0 0 100%;
    width: 100%;
}

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

/* Left panel */
.gf-panel-left {
    position: relative;
    padding: 1.75rem;
    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: 2.25rem; }
}
.gf-panel-bg {
    position: absolute;
    inset: 0;
}
.gf-panel-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.55;
}
.gf-panel-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.65;
}
.gf-panel-watermark {
    position: absolute;
    top: 0.25rem; right: 0.75rem;
    font-size: 100px;
    font-weight: 800;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    user-select: none;
    z-index: 1;
}
@media (min-width: 768px) {
    .gf-panel-watermark { font-size: 150px; top: 0.5rem; right: 1.5rem; }
}
.gf-panel-top {
    position: relative; z-index: 10;
}
.gf-panel-category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.gf-panel-category-line {
    width: 2rem; height: 1px;
    background: rgba(255,255,255,0.4);
    flex-shrink: 0;
}
.gf-panel-category-text {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .gf-panel-category-text { font-size: 0.7rem; }
}
.gf-panel-bottom {
    position: relative; z-index: 10;
}
.gf-panel-slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .gf-panel-slide-title { font-size: 2rem; }
}
@media (min-width: 1200px) {
    .gf-panel-slide-title { font-size: 2.4rem; }
}
.gf-panel-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.gf-panel-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 0.375rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s;
}
.gf-panel-badge:hover {
    background: rgba(255,255,255,0.25);
}
.gf-panel-badge i,
.gf-panel-badge-icon {
    color: #fff;
    font-size: 0.875rem;
}
.gf-panel-badge-text {
    font-size: 0.65rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0;
}

/* Right panel */
.gf-panel-right {
    background: #fff;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    position: relative;
}
@media (min-width: 768px) {
    .gf-panel-right { padding: 2.25rem 2.75rem; }
}
.gf-right-section {
    margin-bottom: 1.25rem;
}
.gf-right-section:last-child {
    margin-bottom: 0;
}
.gf-right-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.gf-right-heading-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gf-green-600);
    flex-shrink: 0;
}
.gf-right-heading-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gf-green-600);
    margin-bottom: 0;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .gf-right-heading-label { font-size: 0.7rem; }
}
.gf-right-heading-line {
    flex: 1;
    height: 1px;
    background: var(--gf-gray-200);
}
.gf-right-description {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--gf-gray-800);
    font-weight: 500;
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .gf-right-description { font-size: 1rem; }
}

/* Point rows with stagger animation */
.gf-point-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.875rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.gf-point-row:last-child { margin-bottom: 0; }
.gf-point-row.gf-anim-visible {
    opacity: 1;
    transform: translateY(0);
}
.gf-point-dot {
    width: 6px; height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--gf-green-600);
    margin-top: 0.45rem;
    flex-shrink: 0;
}
.gf-point-text {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--gf-gray-700);
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .gf-point-text { font-size: 0.92rem; }
}

/* Dots indicator */
.gf-dots-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 0 0.75rem;
}
.gf-dot-btn {
    height: 6px;
    border-radius: 3px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--gf-gray-300);
    transition: width 0.3s ease, background 0.3s ease;
    width: 6px;
}
.gf-dot-btn.active {
    width: 28px;
    background: var(--gf-green-dark);
}
.gf-dot-btn:hover:not(.active) {
    background: var(--gf-gray-400);
}

/* Bottom nav for case studies (counter center style) */
.gf-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0 0.5rem;
}
.gf-bottom-counter {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}
.gf-bottom-counter-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gf-gray-900);
    min-width: 1.5ch;
    text-align: right;
    line-height: 1;
}
.gf-bottom-counter-sep,
.gf-bottom-counter-total {
    font-size: 1.25rem;
    color: var(--gf-gray-400);
}

/* Results grid (case studies) */
.gf-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.gf-result-card {
    background: var(--gf-gray-50);
    border-radius: 0.75rem;
    padding: 0.875rem;
    border: 1px solid var(--gf-gray-200);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: scale(0.85);
}
.gf-result-card.gf-anim-visible {
    opacity: 1;
    transform: scale(1);
}
.gf-result-card:hover {
    border-color: var(--gf-green-600);
    box-shadow: 0 2px 8px rgba(5,150,105,0.12);
}
.gf-result-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gf-green-600);
    line-height: 1.25;
    margin-bottom: 0.2rem;
}
.gf-result-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gf-gray-500);
    margin-bottom: 0.2rem;
}
.gf-result-desc {
    font-size: 0.7rem;
    color: var(--gf-gray-500);
    line-height: 1.4;
    margin-bottom: 0;
}

/* Loading state */
.gf-loader {
    text-align: center;
    padding: 3rem;
    color: var(--gf-gray-400);
    font-size: 0.9rem;
}

/* ==========================================================================
   s_gf_vision — Vision & Mission
   ========================================================================== */
.gf-vision-section {
    background: linear-gradient(135deg, #f9fafb 0%, rgba(236,253,245,0.3) 50%, #f9fafb 100%);
    padding: 4rem 1.5rem;
}
@media (min-width: 768px) {
    .gf-vision-section { padding: 5.5rem 2rem; }
}
.gf-vision-header {
    text-align: center;
    margin-bottom: 3rem;
}
.gf-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .gf-vision-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.gf-vision-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.gf-vision-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 16px 40px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.gf-vision-icon-box {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}
.gf-vision-icon-box svg,
.gf-vision-icon-box i {
    width: 1.6rem;
    height: 1.6rem;
    color: #fff;
    font-size: 1.4rem;
}
.gf-vision-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gf-gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
@media (min-width: 768px) {
    .gf-vision-card-title { font-size: 1.35rem; }
}
.gf-vision-card-desc {
    font-size: 0.9rem;
    color: var(--gf-gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.gf-vision-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gf-green-600);
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}
.gf-vision-link:hover {
    color: #047857;
}
.gf-vision-link-arrow {
    display: inline-flex;
    transition: transform 0.2s ease;
    font-size: 0.9rem;
}
.gf-vision-link:hover .gf-vision-link-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   s_gf_expertise — Expertise section (background géré par o_cc* du thème)
   ========================================================================== */
.gf-expertise-section {
    padding: 4rem 1.5rem;
}
@media (min-width: 768px) {
    .gf-expertise-section { padding: 5.5rem 2rem; }
}
.gf-expertise-header {
    text-align: center;
    margin-bottom: 3rem;
}
.gf-expertise-header .gf-section-eyebrow {
    opacity: 0.7;
}
.gf-expertise-header .gf-section-title {
    color: inherit;
}
.gf-expertise-header .gf-section-lead {
    opacity: 0.85;
    color: inherit;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.gf-expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .gf-expertise-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .gf-expertise-grid { grid-template-columns: repeat(4, 1fr); }
}
.gf-tech-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.gf-tech-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    transform: translateY(-3px);
}
.gf-tech-logo-box {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--gf-gray-50);
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
}
.gf-tech-logo-box img {
    max-height: 2.5rem;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
.gf-tech-logo-fallback {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #059669, #047857);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}
.gf-tech-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gf-gray-900);
    margin-bottom: 0.5rem;
}
.gf-tech-card-desc {
    font-size: 0.85rem;
    color: var(--gf-gray-600);
    line-height: 1.65;
    margin-bottom: 0;
    flex-grow: 1;
}

.gf-expertise-section .gf-tech-card .gf-tech-card-title {
    color: var(--gf-gray-900);
}

.gf-expertise-section .gf-tech-card .gf-tech-card-desc {
    color: var(--gf-gray-600);
}

/* ==========================================================================
   s_gf_transformation — Accordion cards
   ========================================================================== */
.gf-transformation-section {
    background: var(--gf-gray-50);
    padding: 4rem 1.5rem;
}
@media (min-width: 768px) {
    .gf-transformation-section { padding: 5rem 2rem; }
}
.gf-transformation-header {
    text-align: center;
    margin-bottom: 3rem;
}
.gf-transformation-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.gf-accordion-card {
    background: #fff;
    border-radius: 0.875rem;
    border: 1px solid var(--gf-gray-200);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
    /* Entrance animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease;
}
.gf-accordion-card.gf-anim-visible {
    opacity: 1;
    transform: translateY(0);
}
.gf-accordion-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.gf-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.gf-accordion-trigger:hover {
    background: var(--gf-gray-50);
}
.gf-accordion-icon-box {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    border-radius: 0.625rem;
    background: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gf-accordion-icon-box i {
    color: #047857;
    font-size: 1.1rem;
}
.gf-accordion-title {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gf-gray-900);
    margin: 0;
    padding-top: 0.35rem;
    line-height: 1.4;
}
.gf-accordion-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gf-gray-400);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.35rem;
    font-size: 1rem;
}
.gf-accordion-card.open .gf-accordion-chevron {
    transform: rotate(180deg);
}
.gf-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    opacity: 0;
}
.gf-accordion-card.open .gf-accordion-body {
    max-height: 600px;
    opacity: 1;
}
.gf-accordion-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
}
.gf-accordion-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.gf-accordion-point {
    display: flex;
    gap: 0.75rem;
    color: var(--gf-gray-700);
    font-size: 0.9rem;
    line-height: 1.65;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.gf-accordion-card.open .gf-accordion-point {
    opacity: 1;
    transform: translateX(0);
}
.gf-accordion-card.open .gf-accordion-point:nth-child(1) { transition-delay: 0.05s; }
.gf-accordion-card.open .gf-accordion-point:nth-child(2) { transition-delay: 0.1s; }
.gf-accordion-card.open .gf-accordion-point:nth-child(3) { transition-delay: 0.15s; }
.gf-accordion-card.open .gf-accordion-point:nth-child(4) { transition-delay: 0.2s; }
.gf-accordion-bullet {
    color: var(--gf-green-600);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 0.05rem;
}
