/* ============================================================
   AJP INT — Refonte homepage
   Direction : fiche technique industrielle + "ligne d'enduction"
   Charte : jaune-vert / orange + Raleway ; mono IBM Plex pour les données
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    /* Marque */
    --yellow: #EBD804;
    --green: #94B300;
    --orange: #F44708;
    --orange-light: #FAA613;
    --grad-brand: linear-gradient(90deg, var(--yellow), var(--green));
    --grad-accent: linear-gradient(90deg, var(--orange-light), var(--orange));

    /* Neutres */
    --ink: #212121;
    --graphite: #424242;
    --muted: #6b6f63;          /* gris chaud — libellés mono */
    --paper: #F7F7F2;          /* fond clair teinté */
    --white: #FFFFFF;
    --carbon: #201A26;         /* footer / sombre */
    --line: #E4E4DC;           /* filets fins */
    --line-soft: #EDEDE6;

    /* Géométrie (charte) */
    --r-sm: 4px;
    --r: 10px;
    --r-lg: 12px;
    --shadow: 0 2px 4px 1px rgba(33,33,33,.10);
    --shadow-lg: 0 20px 48px rgba(33,33,33,.16);

    --font: 'Raleway', -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --container: 1240px;
    --topbar-h: 40px;
    --mainbar-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--mainbar-h) + 10px); }
body {
    font-family: var(--font); color: var(--graphite); background: var(--white);
    font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }

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

/* ---------- Eyebrow mono (libellé, ancré "datasheet") ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--mono); font-size: .78rem; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--grad-brand); }
.eyebrow-light { color: rgba(255,255,255,.92); }

/* ---------- Couture signature (la "bande" jaune→vert) ---------- */
.seam { height: 3px; background: var(--grad-brand); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .6em;
    font-family: var(--font); font-weight: 700; font-size: .98rem;
    padding: 14px 28px; border-radius: var(--r-sm); border: 2px solid transparent;
    cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn i { font-size: .82em; }
.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 6px 18px rgba(244,71,8,.26); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(244,71,8,.34); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { background: var(--carbon); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-nav { padding: 11px 20px; font-size: .9rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 22px rgba(33,33,33,.10); }

.topbar { background: transparent; color: #fff; height: var(--topbar-h); overflow: hidden; transition: background .3s, color .3s; }
.site-header.scrolled .topbar { background: var(--carbon); color: rgba(255,255,255,.82); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); }
.topbar-claim { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-phone { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { font-family: var(--mono); font-size: .72rem; font-weight: 500; padding: 3px 7px; border-radius: 3px; color: rgba(255,255,255,.72); transition: .2s; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: var(--grad-brand); color: var(--ink); }

.mainbar { background: transparent; transition: background .3s; }
.site-header.scrolled .mainbar { background: #fff; }
.mainbar-inner { display: flex; align-items: center; justify-content: space-between; height: var(--mainbar-h); }
.logo img { height: 48px; width: auto; filter: brightness(0) invert(1); transition: filter .3s; }
.site-header.scrolled .logo img { filter: none; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a { position: relative; font-weight: 600; font-size: .95rem; color: #fff; padding: 8px 13px; border-radius: 5px; transition: color .2s; }
.nav-list a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); }
.site-header.scrolled .nav-list a { color: var(--ink); }
.site-header.scrolled .nav-list a:hover, .site-header.scrolled .nav-list a.active { color: var(--green); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden;
    background: var(--carbon) url("https://ajp-int.com/wp-content/uploads/2020/03/bg-1.png") center/cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(32,26,38,.82) 0%, rgba(32,26,38,.5) 40%, rgba(32,26,38,.66) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; text-align: center; padding: 80px 28px; }
.hero-content .eyebrow { justify-content: center; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 3.7rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; margin-bottom: 24px; }
.hero-subtitle { color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 400; max-width: 640px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; z-index: 2; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 1.2rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ============================================================
   CAPACITÉS — plaque technique
   ============================================================ */
.capacity { border-bottom: 1px solid var(--line); background: var(--white); }
.capacity-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.cap { padding: 52px 30px; border-left: 1px solid var(--line); }
.cap:first-child { border-left: 0; }
.cap-fig { display: block; font-weight: 800; font-size: clamp(2.4rem, 4.4vw, 3.3rem); color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.cap-unit { display: block; margin-top: 10px; font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; color: var(--green); }
.cap-desc { display: block; margin-top: 4px; color: var(--muted); font-size: .92rem; }

/* ============================================================
   SECTIONS génériques
   ============================================================ */
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.section-intro { color: var(--muted); font-size: 1.12rem; margin-top: 18px; }

/* ---------- FLOW — la ligne de production (séquence) ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
/* la bande qui traverse les étapes */
.flow::before { content: ""; position: absolute; top: 14px; left: 8%; right: 8%; height: 3px; background: var(--grad-brand); opacity: .9; }
.flow-step { position: relative; padding: 44px 30px 8px; border-left: 1px solid var(--line); }
.flow-step:first-child { border-left: 0; }
.flow-step::before { content: ""; position: absolute; top: 8px; left: 30px; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--green); }
.flow-index { font-family: var(--mono); font-size: .82rem; font-weight: 500; letter-spacing: .1em; color: var(--orange); }
.flow-step h3 { font-size: 1.35rem; margin: 10px 0 10px; }
.flow-step p { color: var(--graphite); }

/* ---------- SPLIT (texte / image) ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.split-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 22px; }
.split-text > p { color: var(--graphite); font-size: 1.06rem; margin-bottom: 16px; }
.split-text .btn { margin-top: 14px; }

/* datasheet (specs équipement) */
.datasheet { margin-top: 8px; border-top: 1px solid var(--line); }
.datasheet li { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ds-key { color: var(--graphite); font-weight: 500; }
.ds-val { font-family: var(--mono); font-weight: 500; color: var(--ink); white-space: nowrap; }

/* ---------- SERVICE ---------- */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; max-width: 920px; margin: 0 auto; }
.service-list li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.06rem; font-weight: 500; color: var(--ink); }
.service-list i { color: var(--green); font-size: .95rem; flex-shrink: 0; }

/* ---------- PRODUITS ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
    position: relative; display: block; background: var(--white);
    border: 1px solid var(--line); border-top: 4px solid var(--accent, var(--green));
    border-radius: 0 0 var(--r) var(--r); padding: 24px 22px 58px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-cat { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.product-code { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.4rem; letter-spacing: .02em; color: var(--ink); }
.product-card p { color: var(--graphite); font-size: .94rem; margin-top: 4px; }
.product-go { position: absolute; left: 22px; bottom: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--accent, var(--green)); transition: .2s; }
.product-card:hover .product-go { background: var(--accent, var(--green)); color: #fff; transform: translateX(4px); }

/* ============================================================
   CTA
   ============================================================ */
.cta-band { background: var(--ink); }
.cta-band { padding: clamp(56px, 7vw, 88px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-inner p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-top: 8px; }
.cta-band .btn-dark { background: var(--grad-accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--carbon); color: rgba(255,255,255,.72); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 52px; }
.footer-logo { background: #fff; padding: 12px 16px; border-radius: var(--r-sm); height: auto; margin-bottom: 22px; }
.site-footer address { font-style: normal; }
.site-footer address p { margin-bottom: 10px; font-size: .96rem; }
.foot-mono { font-family: var(--mono); font-size: .86rem; color: rgba(255,255,255,.6); }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: .96rem; transition: color .2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .84rem; color: rgba(255,255,255,.45); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-scroll { animation: none; }
    .hero-video { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .capacity-inner { grid-template-columns: repeat(2, 1fr); }
    .cap:nth-child(3) { border-left: 0; }
    .cap { border-top: 1px solid var(--line); }
    .cap:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: calc(var(--topbar-h) + var(--mainbar-h)); right: 0;
        width: min(84vw, 360px); height: calc(100vh - var(--topbar-h) - var(--mainbar-h));
        background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 22px;
        box-shadow: -12px 0 32px rgba(0,0,0,.14); transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
    }
    .main-nav.open { transform: translateX(0); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list a, .site-header.scrolled .nav-list a { color: var(--ink); padding: 15px 8px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
    .nav-list a::after { display: none; }
    .btn-nav { margin-top: 18px; justify-content: center; }
    .flow { grid-template-columns: 1fr; }
    .flow::before { display: none; }
    .flow-step { border-left: 0; border-top: 1px solid var(--line); padding: 36px 0 8px; }
    .flow-step:first-child { border-top: 0; }
    .flow-step::before { left: 0; }
    .split-grid { grid-template-columns: 1fr; gap: 32px; }
    #equipement .split-media, #rd .split-media { order: -1; }
    .service-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .topbar-claim { display: none; }
    .topbar-right { width: 100%; justify-content: space-between; }
    .products-grid, .capacity-inner { grid-template-columns: 1fr; }
    .cap { border-left: 0; border-top: 1px solid var(--line); }
    .cap:first-child { border-top: 0; }
    .hero-cta .btn { width: 100%; justify-content: center; }
}
