/* ===================================================================
   ATH CI — THE BEST FORWARDER
   =================================================================== */

:root{
  --navy: #1B3A6B;
  --navy-deep: #142D54;
  --azure: #2271B4;
  --green: #32A959;
  --green-deep: #0C814A;
  --ink: #10131A;
  --ink-soft: #3C4250;
  --paper: #F7F9FA;
  --paper-dim: #ECF1F0;
  --line: rgba(16,19,26,0.10);
  --line-light: rgba(255,255,255,0.16);
  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --container: 1180px;
  --radius-s: 4px;
  --radius-m: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{ margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.5; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; }
button{ font-family: inherit; }
::selection{ background: var(--green); color: #fff; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 28px; }
:focus-visible{ outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.br-desktop{ display: inline; }
@media (max-width: 720px){ .br-desktop{ display: none; } }

/* grain overlay */
.grain{ position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.025; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* =========================================================
   MANIFEST BAR
   ========================================================= */
.manifest-bar{ background: var(--ink); color: var(--paper); overflow: hidden; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; padding: 7px 0; }
.manifest-track{ display: inline-flex; gap: 0.6em; animation: scroll-left 38s linear infinite; padding-left: 100%; }
.manifest-track .sep{ color: var(--green); opacity: 0.7; }
@keyframes scroll-left{ from{ transform: translateX(0); } to{ transform: translateX(-100%); } }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 500; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner{ display: flex; align-items: center; gap: 28px; padding: 14px 28px; width: 100%; }
.brand{ display: flex; align-items: center; margin-right: auto; }
.brand-logo{ height: 40px; width: auto; display: block; }
.brand-logo--footer{ height: 44px; }
.brand--footer { margin-right: 0; }

.main-nav { display: flex; gap: 12px; font-size: 14.5px; font-weight: 500; }
.main-nav a {
  position: relative;
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0);
  background: rgba(0,0,0,0);
  transition: color 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.7s cubic-bezier(0.16, 1, 0.3, 1), background 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav a:hover { color: var(--green-deep); border-color: rgba(50,169,89,0.5); background: rgba(50,169,89,0.04); }
.main-nav a::after { display: none; }
.main-nav a.is-active { color: var(--navy); font-weight: 600; border-color: rgba(0,0,0,0); background: transparent; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{ display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 14.5px; padding: 12px 22px; border-radius: var(--radius-s); border: 1px solid transparent; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); white-space: nowrap; }
.btn-primary{ background: var(--green); color: #fff; }
.btn-primary:hover{ background: var(--green-deep); transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--navy); background: rgba(27,58,107,0.05); }
.btn .arrow{ transition: transform 0.2s var(--ease); }
.btn:hover .arrow{ transform: translateX(3px); }
.btn-full{ width: 100%; justify-content: center; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(160deg, #1B3A6B 0%, #2271B4 55%, #3490D4 100%);
  color: #fff;
  overflow: hidden;
  padding: 90px 0 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  min-height: 480px;
  max-width: none;
  padding: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: 0px 48px 100px 72px;
  opacity: 0;
  transform: translateX(-60px);
}
.hero-map {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin-right: 0;
  overflow: visible;
  margin-top: -90px;
  opacity: 0;
  transform: translateX(60px);
}
.hero-map svg { width: 100%; height: 100%; max-width: none; display: block; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14.5px; letter-spacing: 0.14em; color: rgba(255,255,255,0.75); margin: 0 0 22px; font-weight: 500; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(50,169,89,0.6); animation: pulse-dot 2.4s infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%{ box-shadow: 0 0 0 0 rgba(50,169,89,0.55); } 70%{ box-shadow: 0 0 0 7px rgba(50,169,89,0); } 100%{ box-shadow: 0 0 0 0 rgba(50,169,89,0); } }
.eyebrow-dark { color: var(--ink-soft); }
.eyebrow-dark .eyebrow-dot { background: var(--green-deep); }
.hero-title { font-family: var(--font-display); font-size: clamp(28px, 4.6vw, 55px); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 22px; }
.hero-title-accent { color: var(--green); font-weight: 800; }
.hero-sub { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 460px; margin: 0 0 36px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta-row .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.hero-cta-row .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.node-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; fill: rgba(255,255,255,0.85); }
.node-main-label { fill: #fff; font-weight: 600; font-size: 13px; }
.node-glow { opacity: 0.55; }
.node-main { filter: drop-shadow(0 0 6px rgba(255,255,255,0.7)); }
.route { stroke-dasharray: 4 7; animation: dash-flow 3.2s linear infinite; }
@keyframes dash-flow { to{ stroke-dashoffset: -110; } }

.hero-watermark { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-watermark img { width: 120%; height: 120%; object-fit: cover; object-position: left top; opacity: 0.25; filter: grayscale(100%) brightness(0.4); mix-blend-mode: luminosity; transform: translateX(0%) translateY(-17%); }
.hero-watermark::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(16,19,26,0.95) 20%, rgba(16,19,26,0.3) 60%, rgba(16,19,26,0) 100%); }

/* =========================================================
   PAGE HERO
   ========================================================= */
.page-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #1c4a78 100%);
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 480px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://i.ibb.co/Y4R1CkKD/port-athci.png');
  background-size: 140%;
  background-position: 40% center;
  background-repeat: no-repeat;
  opacity: 0.20;
  filter: grayscale(100%) brightness(0.4);
  mix-blend-mode: luminosity;
  z-index: 0;
}
.page-hero::after { display: none; }
.page-hero--apropos::before { background-image: none; }
.page-hero--services::before {
  background-image: url('https://i.ibb.co/VYY63B9W/hevea-cajou.jpg');
  background-size: cover;
  background-position: center center;
}
.page-hero--apropos .page-hero-img-right img { max-height: 450px; }
.page-hero--realisations::before {
  background-image: url('https://i.ibb.co/Mkt4nRVP/dokers-athci.jpg');
  background-size: 100%;
  background-position: center -180px;
}
.page-hero-watermark { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero-watermark img { width: 160%; height: 160%; object-fit: cover; object-position: center -80px; opacity: 0.12; filter: grayscale(100%) brightness(0.4); mix-blend-mode: luminosity; }
.page-hero--apropos .page-hero-watermark img { transform: translateX(-13%); }
.page-hero-inner { display: flex; flex-direction: column; justify-content: center; padding: 60px 48px 60px 72px; position: relative; z-index: 1; opacity: 0; transform: translateX(-40px); }
.page-hero-img-right { position: absolute; right: 0; bottom: 0; z-index: 1; width: 40%; height: 100%; display: flex; align-items: flex-end; justify-content: flex-end; overflow: hidden; opacity: 0; transform: translateX(40px); }
.page-hero-img-right img { width: auto; height: auto; object-fit: contain; object-position: bottom right; opacity: 0.9; }
.page-hero--realisations .page-hero-img-right img { max-height: 520px; }
.page-hero--devis .page-hero-inner { text-align: center; align-items: center; }
.page-title { font-family: var(--font-display); font-size: clamp(26px, 4.6vw, 48px); line-height: 1.14; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 18px; max-width: 600px; }
.page-sub { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.78); max-width: 480px; margin: 0; }

/* Desktop seulement — image services */
@media (min-width: 881px) {
  .page-hero--services .page-hero-img-right {
    width: 55%;  
    bottom: 0px;
    overflow: visible;
  }
  .page-hero--partenaires .page-hero-img-right {
    width: 45%;
  }
}

.hero-promise {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.4;
  display: block;
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip{ background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; }
.trust-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.trust-label{ font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-soft); flex-shrink: 0; }
.trust-flags{ display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--navy); }
.trust-flags span{ position: relative; padding-left: 14px; }
.trust-flags span::before{ content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: var(--green); border-radius: 1px; }

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head { max-width: 640px; margin-left: auto; margin-right: auto; margin-bottom: 56px; text-align: center; }
.section-title { font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 38px); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; color: var(--navy); margin: 0; }
.section-title--light{ color: #fff; }

/* =========================================================
   SERVICES
   ========================================================= */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card{ background: #fff; padding: 40px 36px; display: flex; flex-direction: column; }
.service-card--feature{ background: var(--navy); color: #fff; }
.service-card--ghost{ background: var(--paper-dim); }
.service-card-head{ margin-bottom: 20px; }
.service-index{ display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; font-weight: 600; color: var(--green); margin-bottom: 14px; }
.service-index--alt{ color: var(--azure); }
.service-index--ghost{ color: var(--navy); }
.service-card h3{ font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0; line-height: 1.25; }
.service-desc{ font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 22px; }
.service-card--feature .service-desc{ color: rgba(255,255,255,0.78); }
.service-list{ display: flex; flex-direction: column; gap: 11px; margin-top: auto; }
.service-list li{ position: relative; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.service-list li::before{ content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 1.5px; background: var(--green); }
.service-link{ margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.service-link .arrow{ transition: transform 0.2s var(--ease); }
.service-link:hover .arrow{ transform: translateX(4px); }
.services-body { background: var(--paper); padding: 64px 0 120px; }
@media (max-width: 920px){ .service-grid{ grid-template-columns: 1fr; } }
@media (max-width: 540px){ .service-card{ padding: 28px 20px; } }

/* =========================================================
   WHY / APROPOS
   ========================================================= */
.why-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.why-item:first-child { border-top: none; }
.why-num { font-family: var(--font-mono); font-size: 13px; color: var(--green-deep); font-weight: 600; padding-top: 3px; }
.why-item h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.why-item p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

.apropos-body { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: none; width: 100%; padding: 72px 0 88px 0; align-items: center; }
.why-list--standalone { padding: 0 0 0 72px; max-width: none; margin: 0; width: 100%; }

.apropos-stats-wrap { display: flex; flex-direction: column; gap: 16px; padding: 0 72px 0 0; align-self: stretch; align-items: center; }
.apropos-logo { height: auto; width: 100%; max-width: 280px; display: block; object-fit: contain; margin-bottom: 4px; margin-left: auto; margin-right: auto; }
.apropos-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; flex: 1; width: 100%; }

.astat-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.astat-card:hover { box-shadow: 0 8px 32px rgba(27,58,107,0.10); transform: translateY(-3px); }
.astat-num { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--navy); line-height: 1; }
.astat-unit { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--green-deep); font-weight: 600; text-transform: uppercase; }
.astat-label { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-top: 2px; }

/* =========================================================
   NETWORK
   ========================================================= */
.network{ background: var(--ink); color: #fff; padding: 72px 0; position: relative; }
.network-sub { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.65); margin-top: 18px; max-width: 520px; text-align: center; margin-left: auto; margin-right: auto; }
.manifest-grid{ border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-m); overflow: hidden; }
.manifest-row{ display: grid; grid-template-columns: 1fr 1.6fr 0.6fr; align-items: center; padding: 16px 26px; border-bottom: 1px solid rgba(255,255,255,0.10); font-size: 14px; }
.manifest-row:last-child{ border-bottom: none; }
.manifest-row--head{ font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.03); }
.m-country{ font-weight: 600; font-family: var(--font-display); }
.m-role{ color: rgba(255,255,255,0.62); font-size: 13px; }
.m-status{ display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; justify-self: start; }
.m-status--active::before{ content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(50,169,89,0.2); }

/* =========================================================
   PROCESS
   ========================================================= */
.process-line{ list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-step{ position: relative; padding: 28px 28px 0 0; border-top: 2px solid var(--navy); }
.process-mark{ display: block; font-family: var(--font-mono); font-size: 13px; color: var(--green-deep); font-weight: 600; margin-bottom: 16px; }
.process-step h3{ font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--navy); margin: 0 0 10px; }
.process-step p{ font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; padding-right: 12px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact{ background: linear-gradient(165deg, var(--navy-deep), var(--navy)); color: #fff; padding: 72px 0; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; position: relative; z-index: 1; }
.contact-text{ font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.72); margin: 18px 0 36px; max-width: 440px; }
.contact-details{ display: flex; flex-direction: column; gap: 18px; }
.contact-row{ display: flex; align-items: center; gap: 14px; font-size: 14px; }
.contact-row strong{ display: block; font-weight: 600; }
.contact-row small{ display: block; color: rgba(255,255,255,0.55); font-size: 12px; margin-top: 2px; }
.contact-ico{ width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--green); }
.contact-ico svg{ width: 18px; height: 18px; }
a.contact-row{ transition: transform 0.2s var(--ease); }
a.contact-row:hover{ transform: translateX(3px); }
.contact-form{ background: #fff; border-radius: var(--radius-m); padding: 36px; color: var(--ink); display: flex; flex-direction: column; gap: 18px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label{ display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.contact-form label.full{ width: 100%; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233C4250' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(50,169,89,0.12); outline: none; }
.form-note{ margin: 0; font-size: 13px; color: var(--green-deep); font-weight: 600; min-height: 18px; }
.contact-cta-devis{ margin-top: 28px; color: #fff; border-color: rgba(255,255,255,0.3); }
.contact-cta-devis:hover{ border-color: #fff; background: rgba(255,255,255,0.08); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 32px 0 28px; }
.footer-top { display: flex; justify-content: center; align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-legal { padding-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; text-align: center; }
.footer-legal p { margin: 0; }
.footer-copy { color: rgba(255,255,255,0.4); }

/* =========================================================
   SPA ROUTING
   ========================================================= */
#app{ position: relative; }
.view { display: none; }
.view.is-active { display: block; }
.view.swipe-enter-right { animation: swipe-from-right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.view.swipe-enter-left { animation: swipe-from-left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
@keyframes swipe-from-right { from { opacity: 1; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes swipe-from-left { from { opacity: 1; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce){ .view.is-active{ animation: none; } }
.main-nav a.is-active{ color: var(--navy); }

/* =========================================================
   TEASER CARDS
   ========================================================= */
.teaser { background: #fff; padding: 64px 0 80px; border-top: 1px solid var(--line); }
.teaser-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.teaser-card {
  position: relative;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #1c4a78 100%);
  border: none;
  border-radius: 10px;
  padding: 34px 16px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: filter 0.4s var(--ease), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s var(--ease);
}
.teaser-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  filter: grayscale(100%) brightness(0.4);
  mix-blend-mode: luminosity;
  z-index: 0;
  transition: opacity 0.3s var(--ease);
}
.teaser-card--prestations::before { background-image: url('https://i.ibb.co/VYY63B9W/hevea-cajou.jpg');background-position: 30% center;
 }
.teaser-card--apropos::before { background-image: url('https://i.ibb.co/R44WPKs8/bureauathci.png'); }
.teaser-card--realisations::before { background-image: url('https://i.ibb.co/Mkt4nRVP/dokers-athci.jpg'); }
.teaser-card--contact::before { 
  background-image: url('https://i.ibb.co/212zjMXz/contactathci.jpg');
  background-position: 10% center;
}
.teaser-card--partenaires::before { background-image: url('https://i.ibb.co/Y4R1CkKD/port-athci.png'); }
.teaser-grid:hover .teaser-card:hover { filter: brightness(1.15); transform: scale(1.03); }
.teaser-card:hover::before { opacity: 0.28; }
.teaser-ico { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: #fff; }
.teaser-ico svg { width: 20px; height: 20px; }
.teaser-card h3 { position: relative; z-index: 1; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; margin: 0; }
.teaser-card p { position: relative; z-index: 1; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.75); margin: 0; flex-grow: 1; }
.teaser-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--green); }
.teaser-link .arrow { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.teaser-card:hover .teaser-link .arrow { transform: translateX(6px); }

/* Reflet desktop uniquement */
@media (min-width: 881px) {
  .teaser-card {
    box-shadow: 0 30px 40px -10px rgba(20, 45, 84, 0.4);
  }
  .teaser-card:hover {
    box-shadow: 0 30px 40px -10px rgba(20, 45, 84, 0.6);
  }
}

/* =========================================================
   DEVIS
   ========================================================= */
.devis-body{ padding: 48px 0 80px; display: flex; justify-content: center; }
.devis-form{ max-width: 720px; width: 100%; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.contact-intro { opacity: 0; transform: translateX(-40px); transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.contact-form { opacity: 0; transform: translateX(40px); transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s; }
.contact-intro.is-visible { opacity: 1; transform: translateX(0); }
.contact-form.is-visible { opacity: 1; transform: translateX(0); }

/* =========================================================
   RÉALISATIONS
   ========================================================= */
.realisations-body { padding: 48px 0 80px; }
.real-filters { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.real-filter { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; font-weight: 600; padding: 8px 20px; border-radius: var(--radius-s); border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; transition: all 0.2s var(--ease); }
.real-filter:hover { border-color: var(--navy); color: var(--navy); }
.real-filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.real-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.real-card { background: #fff; aspect-ratio: 16 / 10; position: relative; overflow: hidden; cursor: pointer; transition: opacity 0.2s var(--ease); }
.real-card:hover { opacity: 0.88; }
.real-card--empty { background: var(--paper-dim); cursor: default; }
.real-card--empty:hover { opacity: 1; }
.real-empty-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-soft); opacity: 0.4; font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.06em; }
.real-card img, .real-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.real-card-label { position: absolute; bottom: 12px; left: 12px; background: rgba(16,19,26,0.72); color: #fff; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; padding: 4px 10px; border-radius: var(--radius-s); backdrop-filter: blur(4px); }
.real-section { padding: 48px 0; }
.real-section--alt { background: #fff; padding: 48px 28px; border-radius: var(--radius-m); }
.real-section-head { margin-bottom: 32px; }
.real-section-title { font-family: var(--font-display); font-size: clamp(20px, 2.8vw, 28px); font-weight: 600; color: var(--navy); margin: 8px 0 6px; }
.real-section-sub { font-size: 14px; color: var(--ink-soft); margin: 0; }
.real-divider { height: 1px; background: var(--line); margin: 0 0 8px; }

.real-galleries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding: 0 16px;
}

.real-gallery-card {
  position: relative;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #1c4a78 100%);
  border-radius: 10px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 30px 40px -10px rgba(20,45,84,0.4);
}
.real-gallery-card:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
  box-shadow: 0 30px 40px -10px rgba(20,45,84,0.6);
}

.real-gallery-card { position: relative; overflow: hidden; }
.real-gallery-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.real-gallery-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(100%) brightness(0.4);
  mix-blend-mode: luminosity;
}
.real-gallery-card-inner { position: relative; z-index: 1; }
.real-gallery-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.real-gallery-ico {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.real-gallery-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.real-gallery-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0;
}
.real-gallery-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
}
.real-gallery-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--green);
  margin-top: 8px;
}
.real-gallery-cta .arrow { transition: transform 0.3s var(--ease); }
.real-gallery-card:hover .real-gallery-cta .arrow { transform: translateX(6px); }

@media (max-width: 540px) {
  .real-galleries-grid { grid-template-columns: 1fr; padding: 0 20px; }
}

/* =========================================================
   SPLASH SCREEN
   ========================================================= */
#splash { position: fixed; inset: 0; background: #000; z-index: 99999; display: flex; align-items: center; justify-content: center; }

/* =========================================================
   HERO ANIMATE
   ========================================================= */
.hero.hero-animate { animation: hero-dezoom 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes hero-dezoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-grid.hero-animate .hero-inner { animation: hero-text-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards; }
.hero-grid.hero-animate .hero-map { animation: hero-map-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards; }
@keyframes hero-text-in { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes hero-map-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.page-hero.hero-animate .page-hero-inner { animation: hero-text-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
.page-hero.hero-animate .page-hero-img-right { animation: hero-map-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both; }

/* =========================================================
   CUSTOM SELECT
   ========================================================= */
.custom-select { position: relative; width: 100%; }
.custom-select-trigger {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 40px 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233C4250' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.custom-select.open .custom-select-trigger { border-color: var(--green); box-shadow: 0 0 0 3px rgba(50,169,89,0.12); }
.custom-select-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(16,19,26,0.12);
  z-index: 100;
  overflow: hidden;
}
.custom-select.open .custom-select-options { display: block; }
.custom-option {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}
.custom-option:last-child { border-bottom: none; }
.custom-option:hover { background: rgba(50,169,89,0.06); color: var(--green-deep); }
.custom-option.selected { background: rgba(50,169,89,0.08); color: var(--green-deep); font-weight: 600; }
.custom-select-trigger.placeholder { color: var(--ink-soft); opacity: 0.6; }

/* =========================================================
   RESPONSIVE NAV
   ========================================================= */
@media (max-width: 880px) {
  .nav-toggle { display: flex !important; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0; z-index: 700; }
  .nav-toggle span { display: block; height: 2px; width: 24px; background: var(--navy); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { display: none; }
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: 50vw; background: linear-gradient(180deg, rgba(20,45,84,0.97) 0%, rgba(34,113,180,0.95) 100%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); flex-direction: column; align-items: flex-start; gap: 6px; padding: 100px 32px 32px; transform: translateX(100%); opacity: 0; transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1); z-index: 600; }
  .main-nav.open { transform: translateX(0); opacity: 1; }
  .main-nav a { display: block; min-height: 48px; line-height: 48px; padding: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; color: #ffffff; cursor: pointer; pointer-events: auto !important; position: relative; z-index: 650; }
  .main-nav a.is-active { color: #7EC8F5; font-weight: 700; }
  .main-nav a::after { display: none; }
  body.nav-open::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 550; pointer-events: none; }
}

/* =========================================================
   PARTENAIRES
   ========================================================= */
.page-hero--partenaires::before {
  background-image: url('https://i.ibb.co/Y4R1CkKD/port-athci.png');
  background-size: cover;
  background-position: center center;
}
.page-hero--partenaires .page-hero-img-right img {
  max-height: 550px;
  transform: translateY(30px);
}
.partenaires-body { background: var(--paper); padding: 72px 0 100px; }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.partner-card { background: #fff; padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.partner-card:hover { background: var(--paper-dim); transform: translateY(-3px); }
.partner-logo-wrap { width: 100%; height: 80px; display: flex; align-items: center; justify-content: center; }
.partner-logo-wrap img { max-height: 70px; max-width: 160px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: filter 0.3s var(--ease), opacity 0.3s var(--ease); }
.partner-card:hover .partner-logo-wrap img { filter: grayscale(0%); opacity: 1; }
.partner-logo-placeholder { width: 140px; height: 64px; background: var(--paper-dim); border: 1.5px dashed var(--line); border-radius: var(--radius-s); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-soft); opacity: 0.5; }
.partner-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-soft); text-align: center; font-weight: 600; }

/* =========================================================
   RESPONSIVE MOBILE COMPLET
   ========================================================= */
@media (max-width: 880px) {

  /* HERO ACCUEIL */
  .hero { padding: 0; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: auto; }
  .hero-map { display: flex !important; order: -1; height: 260px; margin-top: 0; opacity: 0.8; overflow: hidden; }
  .hero-inner { padding: 32px 24px 48px; text-align: center; align-items: center; }
  .hero-cta-row { display: none; }
  .hero-title { text-align: center; font-size: clamp(26px, 8vw, 36px); }
  .hero-sub { text-align: center; font-size: 14px; max-width: 100%; }
  .eyebrow { justify-content: center; }
  .hero .eyebrow { flex-wrap: nowrap; font-size: 11px; letter-spacing: 0.08em; justify-content: center; }
  .hero-watermark { display: block !important; }
  .hero-watermark img { opacity: 0.20; }
  .hero-watermark::after { display: block !important; background: linear-gradient(to top, rgba(27,58,107,0.95) 40%, rgba(27,58,107,0.4) 70%, rgba(27,58,107,0) 100%); }
  .network .eyebrow { display: inline-flex; align-items: center; gap: 8px; justify-content: center; width: 100%; }
  .network .section-head { display: flex; flex-direction: column; align-items: center; }

  /* PAGE HERO */
  .page-hero { min-height: auto; flex-direction: column; padding: 48px 0 0; overflow: hidden; }
  .page-hero::before { background-size: cover; background-position: center center; opacity: 0.25; }
  .page-hero--devis::before { background-size: cover; background-position: center center; }
  .page-hero-watermark { display: block !important; }
  .page-hero-watermark img { width: 100%; height: 100%; object-fit: cover; object-position: center center; opacity: 0.18; transform: none; }
  .page-hero--apropos .page-hero-watermark img { object-position: center center; transform: none; }
  .page-hero-inner { padding: 40px 24px 24px; text-align: center; align-items: center; }
  .page-title { text-align: center; }
  .page-sub { text-align: center; }
  .page-hero-img-right { display: flex !important; position: relative; width: 100%; height: 260px; justify-content: center; align-items: flex-end; overflow: hidden; margin-top: 50px; bottom: auto; right: auto; top: auto; }
  .page-hero-img-right img { height: 100%; width: auto; max-height: 340px; object-fit: contain; object-position: bottom center; }

  /* IMAGE SERVICES MOBILE */
  .page-hero--services .page-hero-img-right { height: 226px; overflow: visible; }
  .page-hero--services .page-hero-img-right img { height: 900px; width: auto; object-fit: contain; object-position: bottom center; }

  /* APROPOS */
  .apropos-body { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 60px; }
  .why-list--standalone { padding: 0; }
  .why-item { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .why-item h3 { text-align: center; }
  .why-item p { text-align: center; }
  .why-item > div { text-align: center; }
  .why-num { margin-bottom: 8px; }
  .apropos-stats-wrap { padding: 0; }
  .apropos-logo { display: block; max-width: 180px; margin: 0 auto 20px; }
  .network .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
  .apropos-stats { grid-template-columns: 1fr 1fr; padding: 0; gap: 16px; }
  .astat-card { padding: 20px 16px; text-align: center; }
  .astat-num { font-size: 34px; }

 /* CONTACT */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; opacity: 1 !important; transform: none !important; transition: none !important; }
  .contact-intro { text-align: center; }
  .contact-intro .eyebrow { justify-content: center; }
  .contact-details { align-items: flex-start; width: fit-content; margin: 0 auto; }
  .contact-row { justify-content: flex-start; }

  /* SERVICES */
  .service-grid { grid-template-columns: 1fr; }

  /* PROCESS */
  .process-line { grid-template-columns: 1fr; gap: 32px; }
  .process-step { text-align: center; }
  .process-step h3 { text-align: center; }
  .process-step p { text-align: center; padding-right: 0; }
  .process-mark { text-align: center; }

  /* TEASER */
  .teaser { padding: 40px 0 60px; }
  .teaser-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* RÉALISATIONS */
  .realisations-body { padding: 32px 0 60px; }
  .real-grid { grid-template-columns: 1fr 1fr; margin: 0 16px; border-radius: 6px; overflow: hidden; }

  /* NETWORK */
  .network { padding: 48px 0; }
  .manifest-row { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 18px; gap: 8px; }
  .manifest-row--head { display: none; }
  .m-role { grid-column: 1 / -1; font-size: 13px; color: rgba(255,255,255,0.5); order: 3; }
  .m-status { justify-self: end; }

  /* TRUST */
  .trust-inner { flex-direction: column; gap: 12px; text-align: center; }
  .trust-flags { justify-content: center; gap: 12px; font-size: 12px; }

  /* PARTENAIRES */
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partenaires-body { padding: 48px 0 72px; }

  /* DEVIS */
  .devis-body { padding: 32px 0 60px; }

  /* FOOTER */
  .footer-legal { font-size: 11px; padding: 16px 20px; }
  .brand-logo { height: 32px; }
  .header-inner { padding: 12px 16px; }
  .section-head { margin-bottom: 36px; }
}

/* =========================================================
   RESPONSIVE 540px
   ========================================================= */
@media (max-width: 540px) {
  .header-inner { padding: 12px 16px; }
  .brand-logo { height: 32px; }
  .hero { padding: 48px 0 0; }
  .hero-inner { padding: 24px 20px 48px; }
  .hero-title { font-size: clamp(26px, 8vw, 36px); }
  .hero-sub { font-size: 14px; }
  .hero-map { height: 200px; }
  .trust-flags { gap: 10px; font-size: 12px; }
  .trust-label { font-size: 10px; }
  .page-hero-inner { padding: 36px 20px; }
  .page-title { font-size: clamp(22px, 7vw, 32px); }
  .page-sub { font-size: 14px; }
  .page-hero-img-right { height: 232px; }
  .page-hero-img-right img { max-height: 362px; }
  .apropos-body { padding: 40px 20px 60px; gap: 32px; }
  .apropos-stats { grid-template-columns: 1fr; }
  .astat-num { font-size: 34px; }
  .astat-card { padding: 20px 16px; }
  .network { padding: 48px 0; }
  .contact { padding: 48px 0; }
  .contact-form { padding: 20px 16px; }
  .teaser { padding: 40px 0 60px; }
  .teaser-grid { grid-template-columns: 1fr; }
  .teaser-card { padding: 24px 20px; }
  .realisations-body { padding: 32px 0 60px; }
  .real-grid { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: 1fr; gap: 28px; }
  .devis-body { padding: 32px 0 60px; }
  .devis-form { padding: 0 16px; }
  .footer-legal { font-size: 11px; padding: 16px 20px; }
  .brand-logo--footer { height: 36px; }
  .service-card { padding: 28px 20px; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .partner-card { padding: 28px 20px; }
}