/* ==========================================================================
   CTS Dynamics — feuille de style principale
   ========================================================================== */

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
:root{
  --ink:#1c1c1e;
  --ink-2:#141416;
  --panel:#232326;
  --panel-2:#2a2a2d;
  --gold:#d4af5a;
  --gold-bright:#e8c87c;
  --gold-soft:rgba(212,175,90,.12);
  --bronze:#6f5e39;
  --ivory:#f2f1ed;
  --stone:#9c9a93;
  --stone-dim:#6c6a64;
  --hair:rgba(242,241,237,.09);
  --hair-2:rgba(242,241,237,.17);
  --serif:'Fraunces',serif;
  --sans:'Manrope',sans-serif;
  --mono:'IBM Plex Mono',monospace;
  --r-sm:5px;--r-md:9px;--r-lg:16px;
}
body{font-family:var(--sans);background:var(--ink);color:var(--ivory);line-height:1.55;overflow-x:hidden}
a{color:inherit}
img,svg{display:block;max-width:100%}
button,input,textarea{font-family:inherit}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
::selection{background:var(--gold);color:var(--ink)}

.wrap{max-width:1180px;margin:0 auto;padding:0 2.5rem}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:1000;
  background:var(--gold);color:var(--ink);padding:.75rem 1.25rem;
  font-family:var(--sans);font-weight:700;font-size:.85rem;border-radius:0 0 var(--r-sm) 0;
}
.skip-link:focus{left:0}

.brandmark{width:34px;height:34px;border-radius:50%;flex-shrink:0;object-fit:cover}
.brandmark.lg{width:54px;height:54px}

/* ---------- NAV ---------- */
nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:1.1rem 2.5rem;position:sticky;top:0;z-index:200;
  background:rgba(28,28,30,.86);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--hair);
}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none}
.brand-word{font-family:var(--sans);font-weight:700;font-size:.95rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ivory)}
.nav-links{display:flex;gap:2.1rem;font-size:.84rem;color:var(--stone);list-style:none}
.nav-links a{text-decoration:none;transition:color .2s}
.nav-links a:hover{color:var(--ivory)}
.nav-cta{display:flex;gap:.7rem;align-items:center}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--sans);font-weight:600;font-size:.85rem;letter-spacing:.01em;
  border-radius:var(--r-sm);cursor:pointer;border:1px solid transparent;
  transition:all .2s cubic-bezier(.4,0,.2,1);white-space:nowrap;text-decoration:none;
}
.btn-gold{background:var(--gold);color:var(--ink);padding:.7rem 1.4rem}
.btn-gold:hover{background:var(--gold-bright);box-shadow:0 8px 24px rgba(212,175,90,.25);transform:translateY(-1px)}
.btn-line{background:transparent;border-color:var(--hair-2);color:var(--ivory);padding:.7rem 1.4rem}
.btn-line:hover{border-color:var(--gold);color:var(--gold)}
.btn-ghost{background:transparent;border:none;color:var(--stone);padding:.55rem .9rem;font-size:.82rem}
.btn-ghost:hover{color:var(--ivory)}
.btn-block{width:100%;justify-content:center;padding:.85rem 1.5rem;font-size:.88rem}

/* ---------- EYEBROW / LABELS ---------- */
.eyebrow{
  display:flex;align-items:center;gap:.6rem;
  font-family:var(--mono);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--gold);margin-bottom:1.1rem;
}
.eyebrow::before{content:'';width:18px;height:1px;background:var(--gold)}
.eyebrow.muted{color:var(--stone)}
.eyebrow.muted::before{background:var(--stone-dim)}

h1,h2,h3{font-family:var(--serif);font-weight:500;letter-spacing:-0.01em;color:var(--ivory)}
.section-title{font-size:2.1rem;line-height:1.12;margin-bottom:.9rem}
.section-sub{color:var(--stone);font-size:1.02rem;max-width:480px;line-height:1.65;font-weight:400}

/* ---------- HERO ---------- */
.hero{padding:5rem 0 0}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:3rem;align-items:center}
.hero-badge{
  display:inline-flex;align-items:center;gap:.55rem;
  border:1px solid var(--hair-2);border-radius:99px;padding:.4rem 1rem .4rem .7rem;
  font-family:var(--mono);font-size:.72rem;letter-spacing:.04em;color:var(--stone);margin-bottom:2rem;
}
.hero-badge .dot{width:6px;height:6px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.hero-title{font-size:3.4rem;line-height:1.04;margin-bottom:1.4rem;max-width:620px}
.hero-title em{font-style:italic;color:var(--gold);font-weight:500}
.hero-sub{font-size:1.08rem;color:var(--stone);max-width:480px;line-height:1.7;margin-bottom:2.3rem}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:3.2rem}

.stats-strip{display:flex;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.stat{flex:1;padding:1.6rem 2rem 1.6rem 0;border-right:1px solid var(--hair)}
.stat:last-child{border-right:none}
.stat-num{font-family:var(--mono);font-size:1.55rem;font-weight:600;color:var(--gold);letter-spacing:-0.02em;margin-bottom:.2rem}
.stat-label{font-size:.78rem;color:var(--stone-dim)}

/* ---------- HERO VISUAL (signature) ---------- */
.hero-visual{
  position:relative;aspect-ratio:1/1;border-radius:var(--r-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(212,175,90,.06), transparent 60%),
    var(--panel);
  border:1px solid var(--hair);overflow:hidden;
}
.hero-visual::before{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(rgba(242,241,237,.06) 1px, transparent 1px);
  background-size:22px 22px;
}
.hero-visual svg{position:relative;z-index:1;width:100%;height:100%}
.hv-caption{
  position:absolute;bottom:1.25rem;left:1.25rem;z-index:2;
  font-family:var(--mono);font-size:.68rem;letter-spacing:.1em;color:var(--stone-dim);
}
.hv-live{
  position:absolute;top:1.25rem;right:1.25rem;z-index:2;display:flex;align-items:center;gap:.4rem;
  font-family:var(--mono);font-size:.65rem;letter-spacing:.08em;color:var(--gold);
}
.hv-live .pulse{width:6px;height:6px;border-radius:50%;background:var(--gold);animation:pulse 2s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
.topo-draw{stroke-dasharray:900;stroke-dashoffset:900;animation:draw 1.8s ease forwards}
.topo-draw.d2{animation-delay:.15s}
.topo-draw.d3{animation-delay:.3s}
.topo-draw.d4{animation-delay:.45s}
@keyframes draw{to{stroke-dashoffset:0}}
.peak-float{animation:float 4.5s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* ---------- DIVIDER WAVE ---------- */
.wave-divider{width:100%;height:28px;opacity:.5}
.wave-divider path{fill:none;stroke:var(--bronze);stroke-width:1}

/* ---------- SECTION ---------- */
.section{padding:5.5rem 0}
.section.tight{padding:4rem 0}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;margin-bottom:3rem}

/* ---------- HOW IT WORKS ---------- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid var(--hair)}
.step{padding:2rem 1.6rem 0 0;border-right:1px solid var(--hair)}
.step:last-child{border-right:none}
.step-num{font-family:var(--mono);font-size:.85rem;color:var(--stone-dim);margin-bottom:1.4rem;display:block}
.step-title{font-family:var(--sans);font-weight:700;font-size:1rem;color:var(--ivory);margin-bottom:.6rem}
.step-desc{font-size:.86rem;color:var(--stone);line-height:1.6}

/* ---------- CONFIGURATOR ---------- */
.config-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start}
.tab-row{display:flex;gap:0;border-bottom:1px solid var(--hair);margin-bottom:1.6rem}
.tab{padding:.8rem 0;margin-right:2rem;font-size:.85rem;font-weight:600;color:var(--stone-dim);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:all .2s}
.tab.active{color:var(--ivory);border-bottom-color:var(--gold)}
.panel-box{display:none}
.panel-box.active{display:block}

.upload-zone{
  border:1.5px dashed var(--hair-2);border-radius:var(--r-md);padding:3rem 1.5rem;
  text-align:center;cursor:pointer;background:var(--panel);transition:all .2s;
}
.upload-zone:hover,.upload-zone.drag{border-color:var(--gold);background:var(--gold-soft)}
.upload-icon{
  width:44px;height:44px;border-radius:50%;border:1px solid var(--hair-2);
  display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;color:var(--gold);font-size:1.1rem;
}
.upload-text strong{display:block;color:var(--ivory);font-size:.98rem;font-weight:700;margin-bottom:.3rem}
.upload-text{font-size:.82rem;color:var(--stone-dim);line-height:1.7}

.chat-wrap{border:1px solid var(--hair);border-radius:var(--r-md);overflow:hidden;background:var(--panel)}
.chat-body{padding:1rem;display:flex;flex-direction:column;gap:.7rem;max-height:230px;overflow-y:auto}
.msg{max-width:84%}
.msg-bubble{padding:.6rem .85rem;border-radius:10px;font-size:.84rem;line-height:1.5}
.msg-time{font-size:.65rem;color:var(--stone-dim);margin-top:3px;padding:0 2px}
.msg.user{align-self:flex-end}
.msg.user .msg-bubble{background:var(--gold);color:var(--ink);border-radius:10px 10px 2px 10px;font-weight:500}
.msg.user .msg-time{text-align:right}
.msg.team .msg-bubble{background:var(--panel-2);border:1px solid var(--hair);border-radius:10px 10px 10px 2px}
.chat-input{display:flex;gap:.5rem;padding:.8rem;border-top:1px solid var(--hair)}
.chat-input input{flex:1;border:1px solid var(--hair-2);border-radius:99px;padding:.55rem 1rem;font-size:.84rem;background:var(--ink);color:var(--ivory);outline:none}
.chat-input input:focus{border-color:var(--gold)}
.send-btn{width:34px;height:34px;border-radius:50%;background:var(--gold);border:none;cursor:pointer;color:var(--ink);flex-shrink:0;font-size:.9rem}

.viewer-mock{
  background:var(--panel-2);border:1px solid var(--hair);border-radius:var(--r-md);
  height:190px;position:relative;overflow:hidden;margin-bottom:1.2rem;
  display:flex;align-items:center;justify-content:center;
}
.viewer-mock::before{content:'';position:absolute;inset:0;background-image:linear-gradient(rgba(242,241,237,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(242,241,237,.05) 1px,transparent 1px);background-size:24px 24px}

.mat-quick{display:grid;grid-template-columns:repeat(6,1fr);gap:.5rem;margin-bottom:1.4rem}
.mat-chip{border:1px solid var(--hair-2);border-radius:var(--r-sm);padding:.6rem .4rem;text-align:center;cursor:pointer;transition:all .2s;background:transparent}
.mat-chip:hover{border-color:var(--gold)}
.mat-chip.active{border-color:var(--gold);background:var(--gold-soft)}
.mat-swatch{width:18px;height:18px;border-radius:50%;margin:0 auto .4rem;border:1px solid var(--hair-2)}
.mat-chip-name{font-size:.66rem;color:var(--stone);font-weight:600}
.mat-chip.active .mat-chip-name{color:var(--gold)}

.price-panel{border:1px solid var(--hair);border-radius:var(--r-md);background:var(--panel);padding:1.4rem 1.5rem}
.price-row{display:flex;justify-content:space-between;align-items:center;font-family:var(--mono);font-size:.8rem;padding:.55rem 0;border-bottom:1px dashed var(--hair)}
.price-row .lbl{color:var(--stone-dim);letter-spacing:.03em;text-transform:uppercase;font-size:.68rem}
.price-row .val{color:var(--ivory);font-weight:500}
.price-row.discount .val{color:var(--gold)}
.price-total{display:flex;justify-content:space-between;align-items:baseline;padding-top:1rem;margin-top:.3rem}
.price-total .lbl{font-family:var(--sans);font-weight:700;font-size:.9rem;color:var(--ivory)}
.price-total .val{font-family:var(--mono);font-weight:600;font-size:1.7rem;color:var(--gold)}
.qty-stepper{display:flex;align-items:center;gap:.5rem}
.qty-stepper button{width:24px;height:24px;border-radius:50%;border:1px solid var(--hair-2);background:transparent;color:var(--ivory);cursor:pointer;font-family:var(--mono);font-size:.85rem;line-height:1}
.qty-stepper button:hover{border-color:var(--gold);color:var(--gold)}
.qty-stepper input{width:38px;text-align:center;background:transparent;border:none;color:var(--ivory);font-family:var(--mono);font-size:.85rem}
.price-disclaimer{font-size:.68rem;color:var(--stone-dim);margin-top:1rem;line-height:1.6}

/* ---------- MATERIALS DATASHEET ---------- */
.mat-grid-full{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.mat-card{border:1px solid var(--hair);border-radius:var(--r-md);background:var(--panel);overflow:hidden;transition:border-color .2s}
.mat-card:hover{border-color:var(--hair-2)}
.mat-card-top{height:6px}
.mat-card-body{padding:1.3rem 1.3rem 1.5rem}
.mat-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.9rem}
.mat-card-name{font-family:var(--sans);font-weight:700;font-size:1.02rem;color:var(--ivory)}
.mat-card-code{font-family:var(--mono);font-size:.65rem;color:var(--stone-dim)}
.mat-card-desc{font-size:.82rem;color:var(--stone);margin-bottom:1rem;line-height:1.55}
.mat-spec{display:flex;justify-content:space-between;font-family:var(--mono);font-size:.72rem;padding:.35rem 0;border-top:1px solid var(--hair);color:var(--stone)}
.mat-spec .v{color:var(--ivory)}
.mat-card-price{font-family:var(--mono);font-weight:600;color:var(--gold);font-size:.85rem;margin-top:.9rem}

/* ---------- VOLUMES / PRO ---------- */
.vol-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-bottom:1.5rem}
.vol-card{border:1px solid var(--hair);border-radius:var(--r-lg);padding:2.2rem;background:var(--panel)}
.vol-card.featured{border-color:var(--gold);background:linear-gradient(160deg,rgba(212,175,90,.07),var(--panel) 60%)}
.vol-icon{width:40px;height:40px;border-radius:50%;border:1px solid var(--hair-2);display:flex;align-items:center;justify-content:center;color:var(--gold);margin-bottom:1.3rem;font-family:var(--mono);font-size:.95rem}
.vol-title{font-family:var(--serif);font-size:1.35rem;margin-bottom:.6rem}
.vol-desc{font-size:.86rem;color:var(--stone);line-height:1.65;margin-bottom:1.3rem}
.vol-feats{display:flex;flex-direction:column;gap:.55rem;margin-bottom:1.6rem}
.vol-feat{display:flex;align-items:center;gap:.55rem;font-size:.82rem;color:var(--stone)}
.vol-feat::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--gold);flex-shrink:0}

.discount-table{display:flex;border:1px solid var(--hair);border-radius:var(--r-sm);overflow:hidden}
.dt-cell{flex:1;padding:.9rem 1rem;text-align:center;border-right:1px solid var(--hair)}
.dt-cell:last-child{border-right:none}
.dt-qty{font-family:var(--mono);font-size:.72rem;color:var(--stone-dim);margin-bottom:.3rem}
.dt-pct{font-family:var(--mono);font-size:1.1rem;color:var(--gold);font-weight:600}

/* ---------- PORTFOLIO ---------- */
.port-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.port-card{border:1px solid var(--hair);border-radius:var(--r-md);overflow:hidden;cursor:pointer;transition:all .25s}
.port-card:hover{transform:translateY(-3px);border-color:var(--hair-2)}
.port-img{height:160px;background:var(--panel-2);display:flex;align-items:center;justify-content:center;position:relative}
.port-img::before{content:'';position:absolute;inset:0;background-image:linear-gradient(rgba(242,241,237,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(242,241,237,.04) 1px,transparent 1px);background-size:18px 18px}
.port-dot{width:34px;height:34px;border-radius:50%;border:1px solid var(--gold);position:relative;z-index:1}
.port-info{padding:1rem 1.1rem;border-top:1px solid var(--hair)}
.port-tag{font-family:var(--mono);font-size:.65rem;color:var(--gold);letter-spacing:.08em;text-transform:uppercase;margin-bottom:.3rem}
.port-title{font-size:.92rem;font-weight:600;color:var(--ivory)}
.port-mat{font-size:.76rem;color:var(--stone-dim);margin-top:.25rem}

/* ---------- TRUST STRIP ---------- */
.trust-strip{display:flex;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.trust-item{flex:1;padding:1.5rem 1.5rem 1.5rem 0;border-right:1px solid var(--hair);display:flex;align-items:center;gap:.7rem}
.trust-item:last-child{border-right:none}
.trust-item .ic{color:var(--gold);font-family:var(--mono);font-size:.9rem;flex-shrink:0}
.trust-item .tx{font-size:.78rem;color:var(--stone);line-height:1.4}

/* ---------- CTA BANNER ---------- */
.cta-banner{
  background:var(--ink-2);border-radius:var(--r-lg);padding:3.5rem 3rem;
  display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap;
  border:1px solid var(--hair);position:relative;overflow:hidden;
}
.cta-banner::before{content:'';position:absolute;right:-60px;top:-60px;width:240px;height:240px;border-radius:50%;border:1px solid rgba(212,175,90,.15)}
.cta-text h2{font-size:1.9rem;margin-bottom:.6rem;position:relative;z-index:1}
.cta-text p{color:var(--stone);font-size:.95rem;max-width:380px;position:relative;z-index:1}
.cta-actions{display:flex;gap:1rem;flex-wrap:wrap;position:relative;z-index:1}

/* ---------- FOOTER ---------- */
footer{background:var(--ink-2);border-top:1px solid var(--hair);padding:4rem 0 2rem;margin-top:2rem}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2.5rem;padding-bottom:3rem;border-bottom:1px solid var(--hair)}
.footer-brand .brand{margin-bottom:1rem}
.footer-tag{font-family:var(--mono);font-size:.72rem;letter-spacing:.08em;color:var(--stone-dim);text-transform:uppercase;max-width:220px;line-height:1.7}
.footer-col-title{font-family:var(--mono);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--stone-dim);margin-bottom:1.1rem}
.footer-links{display:flex;flex-direction:column;gap:.65rem}
.footer-links a{font-size:.84rem;color:var(--stone);text-decoration:none;transition:color .2s}
.footer-links a:hover{color:var(--gold)}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:1.6rem;font-size:.76rem;color:var(--stone-dim);flex-wrap:wrap;gap:1rem}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* ---------- GENERIC PAGES (page.php) ---------- */
.page-content{padding:5rem 0;max-width:760px;margin:0 auto}
.page-content h1{font-size:2.4rem;margin-bottom:1.5rem}
.page-content h2{font-size:1.5rem;margin:2rem 0 1rem}
.page-content p,.page-content li{color:var(--stone);font-size:1rem;line-height:1.75;margin-bottom:1rem}
.page-content a{color:var(--gold);text-decoration:underline}
.page-content ul,.page-content ol{padding-left:1.4rem;margin-bottom:1rem}

/* ---------- BLOG (index.php) ---------- */
.post-list{padding:5rem 0;max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:2.5rem}
.post-card{border-bottom:1px solid var(--hair);padding-bottom:2.5rem}
.post-card h2{font-size:1.5rem;margin-bottom:.6rem}
.post-card h2 a{text-decoration:none}
.post-card h2 a:hover{color:var(--gold)}
.post-meta{font-family:var(--mono);font-size:.72rem;color:var(--stone-dim);letter-spacing:.05em;text-transform:uppercase;margin-bottom:.8rem}
.post-excerpt{color:var(--stone);line-height:1.7}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
  .wrap{padding:0 1.5rem}
  nav{padding:1rem 1.5rem}
  .nav-links{display:none}
  .hero-grid{grid-template-columns:1fr}
  .hero-visual{aspect-ratio:16/10;order:-1}
  .hero-title{font-size:2.4rem}
  .stats-strip{flex-wrap:wrap}
  .stat{flex:1 1 50%;border-right:none;border-bottom:1px solid var(--hair);padding:1.2rem 1rem}
  .steps{grid-template-columns:1fr 1fr;row-gap:2rem}
  .step{border-right:none;padding-right:0}
  .config-grid{grid-template-columns:1fr}
  .mat-quick{grid-template-columns:repeat(3,1fr)}
  .mat-grid-full{grid-template-columns:1fr 1fr}
  .vol-grid{grid-template-columns:1fr}
  .port-grid{grid-template-columns:1fr 1fr}
  .trust-strip{flex-wrap:wrap}
  .trust-item{flex:1 1 50%;border-right:none;border-bottom:1px solid var(--hair);padding:1.2rem 1rem}
  .cta-banner{flex-direction:column;align-items:flex-start;padding:2.5rem 1.8rem}
  .footer-top{grid-template-columns:1fr 1fr;row-gap:2.5rem}
}
@media (max-width:560px){
  .hero-title{font-size:1.95rem}
  .mat-grid-full{grid-template-columns:1fr}
  .port-grid{grid-template-columns:1fr}
  .mat-quick{grid-template-columns:repeat(3,1fr)}
  .footer-top{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important}
}
