/* ============================================
   PROMATIC RÉUNION - Main Stylesheet
   Brand colors:
   - Primary green: #46AF44
   - Secondary navy: #003057
   - Accent cyan: #00ADEE
   - Power teal: #015D5E
   ============================================ */

:root {
    --c-primary: #46AF44;
    --c-primary-light: #A5D021;
    --c-secondary: #003057;
    --c-accent: #00ADEE;
    --c-power: #015D5E;
    --c-bg: #ffffff;
    --c-bg-alt: #f7f9fc;
    --c-text: #1a2535;
    --c-text-soft: #5a6677;
    --c-border: #e5e9f0;
    --shadow-sm: 0 2px 8px rgba(0, 48, 87, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 48, 87, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 48, 87, 0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --container: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease);
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--c-border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.logo-mark {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 16px; color: var(--c-secondary); font-weight: 800; }
.logo-region { font-size: 11px; color: var(--c-primary); letter-spacing: 0.18em; margin-top: 3px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-soft);
    position: relative;
    transition: color 0.2s;
}
.nav a:hover { color: var(--c-secondary); }
.nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    transition: width 0.3s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
    background: var(--c-secondary);
    color: white !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.2s var(--ease);
}
.nav-cta:hover {
    background: var(--c-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(70, 175, 68, 0.3);
}

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--c-secondary); margin: 5px 0; border-radius: 2px; transition: 0.3s; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 60px) 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #f7f9fc 0%, #eef3f9 100%);
    min-height: 75vh;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 80% 0%, rgba(0, 173, 238, 0.08), transparent),
        radial-gradient(ellipse 600px 400px at 0% 100%, rgba(70, 175, 68, 0.08), transparent);
    pointer-events: none;
    z-index: 1;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.55) saturate(1.1) contrast(1.05);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 48, 87, 0.65) 0%, rgba(0, 48, 87, 0.35) 50%, rgba(0, 173, 238, 0.25) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: rgba(70, 175, 68, 0.25);
    border: 1px solid rgba(70, 175, 68, 0.4);
    backdrop-filter: blur(8px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 100px;
}
.hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
.accent {
    background: linear-gradient(135deg, #A5D021 0%, #46AF44 50%, #00ADEE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}
.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 540px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-power) 100%);
    color: white;
    box-shadow: 0 6px 24px rgba(70, 175, 68, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(70, 175, 68, 0.5);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-full { width: 100%; }

.hero-stats {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.stat strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.stat span { font-size: 13px; color: rgba(255, 255, 255, 0.8); }

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-machine {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1.1;
    background: linear-gradient(135deg, white 0%, #f0f4f9 100%);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-machine::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    border-radius: 24px;
    z-index: -1;
    opacity: 0.2;
}
.hero-machine img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 48, 87, 0.15));
    transition: transform 0.6s var(--ease);
}
.hero-machine:hover img { transform: scale(1.04); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 100px 0; }
.section.bg-alt { background: var(--c-bg-alt); }
.section-head {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-head h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.15;
    color: var(--c-secondary);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section-sub {
    font-size: 17px;
    color: var(--c-text-soft);
    margin-top: 18px;
}

/* ABOUT */
.about { background: var(--c-bg-alt); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.about-text p {
    font-size: 17px;
    color: var(--c-text-soft);
    margin-bottom: 18px;
    line-height: 1.75;
}
.about-text strong { color: var(--c-secondary); font-weight: 600; }
.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.pillar {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    transition: all 0.3s var(--ease);
}
.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary);
}
.pillar-icon {
    font-size: 28px;
    margin-bottom: 14px;
}
.pillar h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    color: var(--c-secondary);
    font-weight: 700;
    margin-bottom: 6px;
}
.pillar p { font-size: 14px; color: var(--c-text-soft); line-height: 1.5; }

/* BRANDS */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.brand-card {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s var(--ease);
}
.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-accent);
}
.brand-card img {
    max-height: 56px;
    width: auto;
    margin: 0 auto 20px;
    object-fit: contain;
}
.brand-card p {
    font-size: 14px;
    color: var(--c-text-soft);
    line-height: 1.5;
}

/* PRODUCTS */
.product-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 22px;
    background: white;
    border: 1.5px solid var(--c-border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-soft);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-secondary); }
.filter-btn.active {
    background: var(--c-secondary);
    color: white;
    border-color: var(--c-secondary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.product-card {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.35s var(--ease);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary);
}
.product-img {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f7f9fc 0%, #eef3f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}
.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s var(--ease);
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-info { padding: 22px 24px 26px; }
.product-brand {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.product-info h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    color: var(--c-secondary);
    font-weight: 700;
    margin-bottom: 8px;
}
.product-info p {
    font-size: 14px;
    color: var(--c-text-soft);
    line-height: 1.5;
}
.product-card.hide { display: none; }

/* SERVICES */
.services { background: var(--c-bg-alt); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    background: white;
    padding: 36px 28px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--c-border);
    transition: all 0.3s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.service-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px rgba(70, 175, 68, 0.25);
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    color: var(--c-secondary);
    font-weight: 700;
    margin-bottom: 10px;
}
.service-card p { font-size: 14px; color: var(--c-text-soft); line-height: 1.55; }

/* CONTACT */
.contact { background: linear-gradient(135deg, #f7f9fc 0%, #eef3f9 100%); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.15;
    color: var(--c-secondary);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.contact-info p {
    font-size: 17px;
    color: var(--c-text-soft);
    line-height: 1.6;
    margin-bottom: 32px;
}
.contact-list { list-style: none; }
.contact-list li {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid var(--c-border);
}
.contact-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text-soft);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.contact-value {
    font-size: 18px;
    color: var(--c-secondary);
    font-weight: 600;
    transition: color 0.2s;
}
.contact-value:hover { color: var(--c-primary); }

.contact-form {
    background: white;
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-border);
}
.form-group { margin-bottom: 18px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-secondary);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--c-text);
    background: var(--c-bg);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--c-text-soft);
    margin-top: 14px;
}

/* FOOTER */
.footer {
    background: var(--c-secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 24px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}
.logo-footer .logo-name,
.logo-footer .logo-region { color: white; }
.logo-footer .logo-region { color: var(--c-primary-light); }
.footer-tagline {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}
.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--c-primary-light); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
}
.footer-bottom p { margin: 4px 0; }
.footer-credits { opacity: 0.6; font-size: 11px; }

/* ============================================
   REVEAL ANIMATIONS (subtle, no JS dependency)
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        animation: revealIn 0.6s var(--ease) both;
    }
    /* Stagger within sections by nth-child for a nice cascade */
    .reveal:nth-child(1) { animation-delay: 0.05s; }
    .reveal:nth-child(2) { animation-delay: 0.10s; }
    .reveal:nth-child(3) { animation-delay: 0.15s; }
    .reveal:nth-child(4) { animation-delay: 0.20s; }
    .reveal:nth-child(5) { animation-delay: 0.25s; }
    .reveal:nth-child(6) { animation-delay: 0.30s; }
}
@keyframes revealIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 720px) {
    .nav {
        position: fixed;
        top: var(--header-h); right: 0;
        flex-direction: column;
        background: white;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - var(--header-h));
        padding: 30px;
        gap: 18px;
        align-items: flex-start;
        transform: translateX(100%);
        transition: transform 0.3s var(--ease);
        box-shadow: var(--shadow-md);
    }
    .nav.open { transform: translateX(0); }
    .nav a { font-size: 16px; }
    .burger { display: block; }
    .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .stat strong { font-size: 24px; }
    .section { padding: 70px 0; }
    .about-pillars { grid-template-columns: 1fr; }
    .brands-grid, .product-grid, .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}
