/* =============================================================
   Fussep Iteru — Design System CSS
   Pixel-perfect reproduction of the React prototype.
   ============================================================= */

/* ---- CSS Custom Properties (tokens from FUSSEP_THEME) ---- */
:root {
    --fp-blue: #0B6FB8;
    --fp-blue-dark: #08507F;
    --fp-blue-deep: #0A2A47;
    --fp-orange: #F37021;
    --fp-green: #4FA748;
    --fp-red: #E63946;
    --fp-teal: #2BB6B0;
    --fp-ink: #0F1B2D;
    --fp-ink-soft: #3D4A5C;
    --fp-muted: #6B7785;
    --fp-border: #E5E9EF;
    --fp-bg: #FFFFFF;
    --fp-bg-soft: #F4F6F9;
    --fp-bg-warm: #FDF5EE;

    --fp-font-title: 'Inter', system-ui, -apple-system, sans-serif;
    --fp-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --fp-font-mono: 'Inter', system-ui, -apple-system, sans-serif;

    --fp-radius: 16px;
    --fp-radius-sm: 10px;
    --fp-radius-pill: 999px;
    --fp-container: 1240px;
    --fp-gap: 32px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--fp-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--fp-ink);
    background: var(--fp-bg);
}
button { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--fp-orange); color: white; }

/* ---- Container ---- */
.fp-container {
    max-width: var(--fp-container);
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- Sections ---- */
.fp-section {
    padding: 96px 0;
}
.fp-section--sm { padding: 48px 0; }
.fp-section--md { padding: 80px 0; }
.fp-section--none { padding: 0; }
.fp-section--bg-soft { background: var(--fp-bg-soft); }
.fp-section--bg-warm { background: linear-gradient(180deg, var(--fp-bg-warm) 0%, var(--fp-bg) 100%); }
.fp-section--bg-deep { background: var(--fp-blue-deep); color: white; }

/* ---- Typography ---- */
.fp-title {
    font-family: var(--fp-font-title);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fp-ink);
    line-height: 1.08;
    text-wrap: balance;
    margin: 0;
}
.fp-title--hero { font-size: 64px; line-height: 1.05; }
.fp-title--page { font-size: 52px; }
.fp-title--section { font-size: 44px; }
.fp-title--md { font-size: 36px; }
.fp-title--sm { font-size: 28px; }
.fp-title--card { font-size: 17px; letter-spacing: -0.01em; }

.fp-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--fp-ink-soft);
    max-width: 620px;
    margin: 0;
}
.fp-lead--lg { font-size: 19px; }

.fp-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--fp-ink-soft);
}

/* ---- Eyebrow ---- */
.fp-eyebrow {
    font-family: var(--fp-font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fp-orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.fp-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
}
.fp-eyebrow--blue { color: var(--fp-blue); }
.fp-eyebrow--green { color: var(--fp-green); }

/* ---- Grids ---- */
.fp-grid { display: grid; gap: 24px; }
.fp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.fp-grid--5 { grid-template-columns: repeat(5, 1fr); }
.fp-grid--6 { grid-template-columns: repeat(6, 1fr); }
.fp-grid--hero { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.fp-grid--content { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.fp-grid--content-rev { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.fp-grid--sidebar { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }

/* ---- Cards ---- */
.fp-card {
    background: white;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    padding: 24px;
}
.fp-card--flush { padding: 0; overflow: hidden; }
.fp-card-hover {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.fp-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -16px rgba(11,42,71,0.18);
    border-color: #c8d2dc;
}
.fp-card__image {
    overflow: hidden;
    border-radius: var(--fp-radius) var(--fp-radius) 0 0;
}
.fp-card__image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.fp-card__body {
    padding: 24px;
}

/* ---- Buttons ---- */
.fp-btn {
    font-family: var(--fp-font-title);
    font-weight: 700;
    border-radius: var(--fp-radius-pill);
    border: none;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 14px;
    padding: 12px 22px;
    text-decoration: none;
}
.fp-btn:hover { transform: translateY(-1px); }
.fp-btn--lg { font-size: 16px; padding: 16px 28px; }
.fp-btn--full { width: 100%; }
.fp-btn--primary {
    background: var(--fp-blue);
    color: white;
    box-shadow: 0 8px 20px -8px rgba(11,111,184,0.6);
}
.fp-btn--orange {
    background: var(--fp-orange);
    color: white;
    box-shadow: 0 8px 20px -8px rgba(243,112,33,0.6);
}
.fp-btn--ghost {
    background: transparent;
    color: var(--fp-ink);
    border: 1.5px solid var(--fp-border);
}
.fp-btn--dark {
    background: var(--fp-ink);
    color: white;
}
.fp-btn--on-dark {
    background: white;
    color: var(--fp-blue-deep);
}

/* ---- Icon bounce on card hover ---- */
.fp-icon-bounce {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fp-card-hover:hover .fp-icon-bounce {
    transform: scale(1.12) rotate(-4deg);
}

/* ---- Link arrow ---- */
.fp-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}
.fp-link-arrow svg { transition: transform 0.3s ease; }
.fp-link-arrow:hover svg { transform: translateX(4px); }

/* ---- Icon box ---- */
.fp-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}
.fp-icon-box--lg { width: 56px; height: 56px; }

/* ---- Tags / Badges ---- */
.fp-tag {
    font-family: var(--fp-font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.fp-tag--orange { background: rgba(243,112,33,0.1); color: var(--fp-orange); }
.fp-tag--teal { background: rgba(43,182,176,0.1); color: var(--fp-teal); }
.fp-tag--blue { background: rgba(11,111,184,0.1); color: var(--fp-blue); }
.fp-tag--warm { background: var(--fp-bg-warm); color: var(--fp-orange); }

/* ---- Mono label ---- */
.fp-mono {
    font-family: var(--fp-font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--fp-muted);
}

/* ---- Step number ---- */
.fp-step-num {
    font-family: var(--fp-font-mono);
    font-size: 11px;
    color: var(--fp-orange);
    font-weight: 700;
}

/* ---- Number display ---- */
.fp-number {
    font-family: var(--fp-font-title);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.fp-number--hero { font-size: 56px; color: var(--fp-orange); }
.fp-number--lg { font-size: 32px; }
.fp-number--xl { font-size: 80px; }

/* ---- Pulse dot ---- */
.fp-pulse-dot {
    animation: fp-pulse-ring 2s infinite;
}

/* ---- Image slot (placeholder) ---- */
.fp-image-slot {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 16px;
}
.fp-image-slot--flush { border-radius: 0; }
.fp-image-slot__label {
    font-family: var(--fp-font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.85);
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---- Stats bar ---- */
.fp-stats-bar {
    background: var(--fp-blue-deep);
    color: white;
    padding: 56px 0;
}
.fp-stats-bar .fp-stat {
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 32px;
}
.fp-stats-bar .fp-stat:first-child {
    border-left: none;
    padding-left: 0;
}
.fp-stat__label {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* ---- CTA Banner ---- */
.fp-cta-banner {
    background: linear-gradient(120deg, var(--fp-blue) 0%, var(--fp-blue-deep) 100%);
    border-radius: 24px;
    padding: 64px 56px;
    color: white;
    position: relative;
    overflow: hidden;
}
.fp-cta-banner__blob {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243,112,33,0.35) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Certified badge ---- */
.fp-certified {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 12px 32px -16px rgba(11,42,71,0.18);
    border: 1px solid var(--fp-border);
}

/* ---- Timeline ---- */
.fp-timeline {
    position: relative;
    padding-left: 32px;
}
.fp-timeline__line {
    position: absolute;
    left: 8px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--fp-border);
}
.fp-timeline__item {
    position: relative;
    margin-bottom: 36px;
    display: grid;
    grid-template-columns: 120px 1fr 2fr;
    gap: 24px;
    align-items: start;
}
.fp-timeline__dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 18px;
    background: white;
    border: 3px solid var(--fp-orange);
}

/* ---- Manifesto stat ---- */
.fp-manifesto {
    background: var(--fp-bg-warm);
    border-radius: 20px;
    padding: 48px 56px;
}

/* ---- Forms ---- */
.fp-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fp-form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--fp-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.fp-form-input,
.fp-form-select,
.fp-form-textarea {
    padding: 12px 14px;
    border-radius: var(--fp-radius-sm);
    border: 1.5px solid var(--fp-border);
    font-size: 14px;
    font-family: var(--fp-font-body);
    outline: none;
    transition: border-color 0.2s ease;
}
.fp-form-input:focus,
.fp-form-select:focus,
.fp-form-textarea:focus {
    border-color: var(--fp-blue);
}
.fp-form-textarea {
    resize: vertical;
}
.fp-form-file {
    padding: 10px 12px;
    border-radius: var(--fp-radius-sm);
    border: 1.5px dashed var(--fp-border);
    font-size: 13px;
    font-family: var(--fp-font-body);
    background: var(--fp-bg-soft);
}
.fp-form-error {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #B3261E;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: var(--fp-radius-sm);
    margin-bottom: 14px;
}

/* ---- Filter pills ---- */
.fp-filter-btn {
    padding: 10px 18px;
    border-radius: var(--fp-radius-pill);
    border: 1.5px solid var(--fp-border);
    background: white;
    color: var(--fp-ink);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--fp-font-body);
    font-size: 14px;
    transition: all 0.2s ease;
}
.fp-filter-btn.active,
.fp-filter-btn--active {
    border-color: var(--fp-blue);
    background: var(--fp-blue);
    color: white;
}

/* ---- Success state ---- */
.fp-success {
    text-align: center;
    padding: 60px 0;
}
.fp-success__icon {
    width: 72px;
    height: 72px;
    border-radius: 72px;
    background: var(--fp-green);
    color: white;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.fp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fp-border);
}
.fp-header__inner {
    max-width: var(--fp-container);
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.fp-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}
.fp-header__logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Main nav */
.fp-nav {
    display: flex;
    gap: 4px;
    margin-left: 16px;
    flex-wrap: wrap;
}
.fp-nav__link {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--fp-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--fp-ink-soft);
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
}
.fp-nav__link:hover { color: var(--fp-ink); }
.fp-nav__link--active {
    font-weight: 700;
    color: var(--fp-blue);
}
.fp-nav__link--active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--fp-orange);
    border-radius: 2px;
}

/* Nav dropdown ("Produits") */
.fp-nav__dropdown {
    position: relative;
}
.fp-nav__dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.fp-nav__dropdown-chevron {
    transition: transform 0.2s ease;
}
.fp-nav__dropdown:hover .fp-nav__dropdown-chevron,
.fp-nav__dropdown:focus-within .fp-nav__dropdown-chevron {
    transform: rotate(180deg);
}
.fp-nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 220px;
    background: white;
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px -16px rgba(11,42,71,0.22);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 60;
}
.fp-nav__dropdown:hover .fp-nav__dropdown-menu,
.fp-nav__dropdown:focus-within .fp-nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.fp-nav__dropdown-link {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fp-ink-soft);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.fp-nav__dropdown-link:hover {
    background: var(--fp-bg-soft);
    color: var(--fp-ink);
}
.fp-nav__dropdown-link--active {
    font-weight: 700;
    color: var(--fp-blue);
    background: rgba(11,111,184,0.07);
}

/* Header right */
.fp-header__right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Language toggle */
.fp-lang-toggle {
    display: inline-flex;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-pill);
    padding: 3px;
    background: white;
}
.fp-lang-btn {
    background: transparent;
    color: var(--fp-ink-soft);
    border: none;
    padding: 6px 12px;
    border-radius: var(--fp-radius-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--fp-font-mono);
    letter-spacing: 0.04em;
    transition: background 0.2s ease, color 0.2s ease;
}
.fp-lang-btn--active {
    background: var(--fp-ink);
    color: white;
}

/* Burger */
.fp-burger {
    display: none;
    background: white;
    border: 1.5px solid var(--fp-border);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    margin-left: auto;
    align-items: center;
    justify-content: center;
}

/* Mobile menu */
.fp-mobile-menu {
    display: none;
    border-top: 1px solid var(--fp-border);
    padding: 16px 20px;
    background: white;
    flex-direction: column;
    gap: 4px;
}
.fp-mobile-menu.open { display: flex; }
.fp-mobile-menu__link {
    background: transparent;
    border: none;
    text-align: left;
    padding: 12px 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--fp-ink);
    cursor: pointer;
    font-family: var(--fp-font-body);
    text-decoration: none;
    display: block;
}
.fp-mobile-menu__link--active { font-weight: 700; color: var(--fp-blue); }
.fp-mobile-menu__link--group {
    font-weight: 700;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--fp-border);
}
.fp-mobile-menu__link--child {
    padding-left: 24px;
    font-size: 14px;
    color: var(--fp-ink-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */
.fp-footer {
    background: var(--fp-blue-deep);
    color: white;
    padding: 72px 0 32px;
}
.fp-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.fp-footer__logo img {
    height: 84px;
    opacity: 0.95;
}
.fp-footer__tagline {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    max-width: 320px;
    margin: 16px 0 0;
}
.fp-footer__address {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 24px;
    font-family: var(--fp-font-mono);
    line-height: 1.7;
}
.fp-footer__heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fp-orange);
    font-weight: 700;
    margin: 0 0 16px;
}
.fp-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fp-footer__links a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.fp-footer__links a:hover { color: white; }
.fp-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    flex-wrap: wrap;
    gap: 16px;
}
.fp-footer__bottom-links {
    display: flex;
    gap: 24px;
}
.fp-footer__bottom-links a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   HERO — Full-screen background slider
   ============================================================ */
.fp-hero-full {
    position: relative;
    width: 100%;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--fp-blue-deep);
}

/* Slider = background */
.fp-hero-full__slider {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}
.fp-hero-full__slider .fp-slider__slide {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
}
.fp-hero-full__slider .fp-slider__slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}
.fp-hero-full__slider .fp-slider__slide .fp-image-slot {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border-radius: 0 !important;
}

/* Dark overlay for text readability */
.fp-hero-full__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(10,42,71,0.85) 0%,
        rgba(11,111,184,0.6) 50%,
        rgba(243,112,33,0.35) 100%
    );
}

/* Text content */
.fp-hero-full__content {
    position: relative;
    z-index: 3;
    padding: 120px 0 100px;
    width: 100%;
}

/* Dots */
.fp-hero-full__dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

/* Badge on dark background */
.fp-hero-full .fp-certified {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255,255,255,0.2);
}

/* Legacy hero (for inner pages) */
.fp-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}
.fp-hero__blob {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    pointer-events: none;
}
.fp-hero__blob--orange { top: -120px; right: -120px; background: radial-gradient(circle, rgba(243,112,33,0.18) 0%, transparent 70%); }
.fp-hero__blob--blue { bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(11,111,184,0.14) 0%, transparent 70%); }

/* ============================================================
   IMAGE SLIDER
   ============================================================ */
.fp-slider {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -24px rgba(11,42,71,0.25);
}
.fp-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease, transform 6s ease;
    transform: scale(1);
}
.fp-slider__slide.active {
    opacity: 1;
    transform: scale(1.03);
}
.fp-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fp-slider__gradient {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, rgba(15,27,45,0.35));
    pointer-events: none;
}
.fp-slider__dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.fp-slider__dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: var(--fp-radius-pill);
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: width 0.4s ease, background 0.3s ease;
    padding: 0;
}
.fp-slider__dot.active {
    width: 28px;
    background: var(--fp-orange);
}

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.fp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,27,45,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    animation: fp-fade-in 0.3s ease;
}
.fp-modal {
    background: white;
    border-radius: 20px;
    max-width: 920px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    animation: fp-scale-in 0.35s cubic-bezier(0.16,1,0.3,1);
}
.fp-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: var(--fp-radius-pill);
    background: white;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 16px -8px rgba(0,0,0,0.2);
}
.fp-modal__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.fp-modal__spec {
    padding: 12px;
    background: var(--fp-bg-soft);
    border-radius: var(--fp-radius-sm);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fp-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fp-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fp-scale-in {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fp-slide-left {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fp-pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(243,112,33,0.45); }
    70% { box-shadow: 0 0 0 16px rgba(243,112,33,0); }
    100% { box-shadow: 0 0 0 0 rgba(243,112,33,0); }
}

.fp-reveal { opacity: 0; }
.fp-reveal.fp-in { animation: fp-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fp-reveal.fp-in.fp-scale { animation: fp-scale-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fp-reveal.fp-in.fp-left { animation: fp-slide-left 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ============================================================
   RESPONSIVE — Tablet ≤ 1100px
   ============================================================ */
@media (max-width: 1100px) {
    /* All 2-column layouts → 1 column */
    .fp-grid--hero,
    .fp-grid--content,
    .fp-grid--content-rev,
    .fp-grid--sidebar {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .fp-grid--4 { grid-template-columns: repeat(2, 1fr) !important; }
    .fp-grid--5 { grid-template-columns: repeat(2, 1fr) !important; }
    .fp-grid--6 { grid-template-columns: repeat(3, 1fr) !important; }

    /* Typography */
    .fp-title--hero { font-size: 44px !important; }
    .fp-title--page { font-size: 38px !important; }
    .fp-title--section { font-size: 32px !important; }
    .fp-title--md { font-size: 30px !important; }

    /* Header wrap */
    .fp-header__inner { flex-wrap: wrap; }
    .fp-nav { order: 3; width: 100%; padding-top: 8px; }

    /* Inline style grid overrides for templates */
    [style*="grid-template-columns: 1.05fr"],
    [style*="grid-template-columns: 1.1fr"],
    [style*="grid-template-columns: 0.9fr"],
    [style*="grid-template-columns: 1.2fr"],
    [style*="grid-template-columns: 1.4fr"],
    [style*="grid-template-columns: 1.5fr"],
    [style*="grid-template-columns: 1fr 1.1fr"],
    [style*="grid-template-columns: 1fr 1.2fr"],
    [style*="grid-template-columns: 1fr 1.4fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    [style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    [style*="grid-template-columns: repeat(6, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Sticky elements — disable on tablet */
    [style*="position: sticky"],
    [style*="position:sticky"] {
        position: static !important;
    }

    /* CTA banners */
    .fp-cta-banner { padding: 48px 36px !important; }
}

/* ============================================================
   RESPONSIVE — Mobile ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
    /* Sections */
    .fp-section { padding: 48px 0 !important; }
    .fp-section--sm { padding: 32px 0 !important; }
    .fp-section--md { padding: 40px 0 !important; }
    .fp-container { padding: 0 16px !important; }

    /* ALL grids → 1 column on mobile */
    .fp-grid--2,
    .fp-grid--3,
    .fp-grid--4,
    .fp-grid--5,
    .fp-grid--6,
    .fp-grid--hero,
    .fp-grid--content,
    .fp-grid--content-rev,
    .fp-grid--sidebar {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Override ALL inline grid styles */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    /* Exception: keep 2-col for small items like specs, team photos */
    .fp-modal__specs,
    [style*="grid-template-columns: 1fr 1fr"][style*="gap: 12px"],
    [style*="grid-template-columns: 1fr 1fr"][style*="gap:12px"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Override inline gap */
    [style*="gap: 64px"],
    [style*="gap:64px"],
    [style*="gap: 56px"],
    [style*="gap:56px"],
    [style*="gap: 48px"],
    [style*="gap:48px"] {
        gap: 24px !important;
    }

    /* Typography — all sizes reduced */
    .fp-title--hero { font-size: 32px !important; line-height: 1.1 !important; }
    .fp-title--page { font-size: 28px !important; line-height: 1.1 !important; }
    .fp-title--section { font-size: 24px !important; }
    .fp-title--md { font-size: 22px !important; }
    .fp-title--sm { font-size: 20px !important; }
    /* Override inline font-sizes */
    [style*="font-size: 64px"],
    [style*="font-size:64px"] { font-size: 32px !important; line-height: 1.1 !important; }
    [style*="font-size: 56px"],
    [style*="font-size:56px"] { font-size: 28px !important; }
    [style*="font-size: 52px"],
    [style*="font-size:52px"] { font-size: 28px !important; line-height: 1.1 !important; }
    [style*="font-size: 44px"],
    [style*="font-size:44px"] { font-size: 24px !important; }
    [style*="font-size: 42px"],
    [style*="font-size:42px"] { font-size: 24px !important; }
    [style*="font-size: 36px"],
    [style*="font-size:36px"] { font-size: 22px !important; }
    [style*="font-size: 32px"],
    [style*="font-size:32px"] { font-size: 20px !important; }
    [style*="font-size: 80px"],
    [style*="font-size:80px"] { font-size: 48px !important; }

    .fp-lead { font-size: 15px !important; }
    .fp-lead--lg { font-size: 16px !important; }

    /* Sticky → static */
    [style*="position: sticky"],
    [style*="position:sticky"] {
        position: static !important;
    }

    /* ---- HEADER ---- */
    .fp-header__inner {
        padding: 10px 16px !important;
        gap: 8px !important;
    }
    .fp-nav { display: none !important; }
    .fp-header__right .fp-btn { display: none !important; }
    .fp-burger { display: inline-flex !important; }
    .fp-header__logo img { height: 52px !important; }
    .fp-header__right { gap: 8px; }
    .fp-lang-btn { padding: 5px 10px; font-size: 11px; }

    /* ---- HERO FULL (home) ---- */
    .fp-hero-full { min-height: 80vh !important; }
    .fp-hero-full__content { padding: 80px 0 60px !important; }
    .fp-hero-full__dots { bottom: 20px !important; }

    /* ---- HERO (inner pages) ---- */
    .fp-hero { padding: 40px 0 60px !important; }
    .fp-hero__blob { width: 200px !important; height: 200px !important; }
    .fp-slider { height: 280px !important; border-radius: 12px !important; }
    .fp-slider .fp-image-slot { height: 280px !important; }

    /* ---- STATS BAR ---- */
    .fp-stats-bar { padding: 36px 0 !important; }
    .fp-stats-bar .fp-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
    .fp-stat {
        border-left: none !important;
        padding-left: 0 !important;
        text-align: center;
    }
    .fp-number--hero { font-size: 36px !important; }

    /* ---- CARDS ---- */
    .fp-card { padding: 18px !important; border-radius: 12px !important; }
    .fp-card--flush { padding: 0 !important; }
    .fp-card__image img { height: 180px !important; }

    /* ---- CERTIFIED BADGE ---- */
    .fp-certified {
        padding: 12px 16px !important;
        gap: 10px !important;
    }

    /* ---- BUTTONS ---- */
    .fp-btn--lg { padding: 14px 22px !important; font-size: 14px !important; }
    .fp-btn { font-size: 13px !important; padding: 10px 18px !important; }
    [style*="display: flex"][style*="gap: 12px"][style*="margin-top: 36px"],
    [style*="display:flex"][style*="gap:12px"][style*="margin-top:36px"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* ---- CTA BANNERS ---- */
    .fp-cta-banner {
        padding: 28px 20px !important;
        border-radius: 16px !important;
    }
    .fp-cta-banner .fp-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center;
    }
    .fp-cta-banner [style*="justify-content: flex-end"],
    .fp-cta-banner [style*="justify-content:flex-end"] {
        justify-content: center !important;
    }

    /* ---- MANIFESTO (Iteru) ---- */
    .fp-manifesto {
        padding: 28px 20px !important;
        border-radius: 14px !important;
    }
    .fp-manifesto .fp-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .fp-number--xl { font-size: 48px !important; }

    /* ---- FOOTER ---- */
    .fp-footer { padding: 48px 0 24px !important; }
    .fp-footer__grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .fp-footer__logo img { height: 56px !important; }
    .fp-footer__bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        font-size: 11px !important;
    }
    .fp-footer__bottom-links { gap: 16px !important; }

    /* ---- TIMELINE ---- */
    .fp-timeline { padding-left: 24px !important; }
    .fp-timeline__item {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        margin-bottom: 28px !important;
    }
    .fp-timeline__dot { left: -24px !important; width: 14px !important; height: 14px !important; }
    .fp-timeline__line { left: 4px !important; }

    /* ---- JOBS LIST ---- */
    .fp-job-row,
    [style*="grid-template-columns: 2fr 1fr 1fr auto"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 18px !important;
    }
    .fp-job-row .fp-btn,
    .fp-job-row .fp-btn--ghost {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 8px;
    }

    /* ---- FORMS ---- */
    .fp-form-grid-2,
    form[style*="grid-template-columns: 1fr 1fr"],
    form[style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"]:has(.fp-form-field) {
        grid-template-columns: 1fr !important;
    }

    /* ---- PRODUCT MODAL ---- */
    .fp-modal {
        grid-template-columns: 1fr !important;
        max-height: 95vh !important;
        border-radius: 14px !important;
    }
    .fp-modal-overlay { padding: 10px !important; }
    .fp-modal__specs { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }

    /* ---- NEWS CARDS ---- */
    .fp-card[style*="grid-template-columns: 1fr 1.2fr"] {
        grid-template-columns: 1fr !important;
    }

    /* ---- IMAGE SLOTS ---- */
    .fp-image-slot { border-radius: 10px !important; min-height: 160px; }

    /* ---- ICON BOX ---- */
    .fp-icon-box { width: 40px !important; height: 40px !important; }
    .fp-icon-box--lg { width: 48px !important; height: 48px !important; }

    /* ---- FILTER PILLS ---- */
    .fp-filter-btn { padding: 8px 14px !important; font-size: 13px !important; }

    /* ---- PARTNERS CTA ---- */
    [style*="padding: 56px 48px"],
    [style*="padding:56px 48px"] {
        padding: 28px 20px !important;
        border-radius: 14px !important;
    }

    /* ---- INLINE FLEX OVERRIDES ---- */
    [style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    /* ---- GENERAL INLINE PADDING OVERRIDES ---- */
    [style*="padding: 64px"],
    [style*="padding:64px"] { padding: 28px 20px !important; }
    [style*="padding: 48px 56px"],
    [style*="padding:48px 56px"] { padding: 24px 18px !important; }
    [style*="padding: 56px 48px"],
    [style*="padding:56px 48px"] { padding: 24px 18px !important; }

    /* ---- HIDE DECORATIVE ELEMENTS ---- */
    .fp-hero__blob { display: none !important; }
    .fp-cta-banner__blob { display: none !important; }
}

/* ============================================================
   RESPONSIVE — Very small screens ≤ 420px
   ============================================================ */
@media (max-width: 420px) {
    .fp-container { padding: 0 12px !important; }
    .fp-title--hero { font-size: 26px !important; }
    .fp-title--page { font-size: 24px !important; }
    .fp-title--section,
    .fp-title--md { font-size: 20px !important; }

    .fp-stats-bar .fp-grid {
        grid-template-columns: 1fr !important;
    }
    .fp-number--hero { font-size: 32px !important; }

    .fp-header__logo img { height: 36px !important; }
    .fp-header__inner { padding: 8px 12px !important; }

    .fp-btn { font-size: 12px !important; padding: 10px 16px !important; }
    .fp-btn--lg { font-size: 13px !important; padding: 12px 20px !important; }

    .fp-slider { height: 200px !important; }
    .fp-slider .fp-image-slot { height: 200px !important; }

    .fp-modal__specs { grid-template-columns: 1fr !important; }

    .fp-footer__logo img { height: 44px !important; }
}

/* ============================================================
   WordPress-specific overrides
   ============================================================ */
.wp-block-image img { border-radius: var(--fp-radius); }
.entry-content { font-size: 16px; line-height: 1.7; color: var(--fp-ink-soft); }
.entry-content h2,
.entry-content h3 { font-family: var(--fp-font-title); color: var(--fp-ink); }

/* Admin bar fix */
body.admin-bar .fp-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .fp-header { top: 46px; }
}
