/* ============================================
   YEDI SERVICES — Design System
   Palette: nuit profonde / ivoire / laiton / vert forêt
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  --navy:        #0A1A3C;
  --navy-deep:   #060F26;
  --ivory:       #F5F3EC;
  --ivory-warm:  #EFEAE0;
  --brass:       #C9A969;
  --brass-light: #DCC48E;
  --forest:      #1B4332;
  --forest-light:#2D6A4F;
  --white:       #FFFFFF;
  --slate:       #6B6F76;
  --slate-dark:  #3A3D42;
  --line:        rgba(10,26,60,0.12);
  --line-light:  rgba(245,243,236,0.18);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
  --radius: 2px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html{ scroll-behavior:smooth; }

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

body{
  font-family:var(--font-body);
  background:var(--ivory);
  color:var(--navy);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }

::selection{ background:var(--brass); color:var(--navy); }

:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

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

/* ---------- Typography ---------- */
.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--brass);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.eyebrow::before{
  content:'';
  width:28px; height:1px;
  background:var(--brass);
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:500;
  line-height:1.08;
  letter-spacing:-0.01em;
  color:var(--navy);
}

h1{ font-size:clamp(2.6rem, 5.2vw, 4.6rem); font-weight:400; }
h2{ font-size:clamp(2rem, 3.4vw, 3rem); }
h3{ font-size:clamp(1.3rem, 2vw, 1.7rem); }

p{ color:var(--slate-dark); }
.lede{ font-size:1.2rem; color:var(--slate-dark); line-height:1.65; max-width:46ch; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:15px 30px;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.02em;
  border-radius:var(--radius);
  transition:all 0.35s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:var(--navy);
  color:var(--ivory);
}
.btn-primary:hover{
  background:var(--forest);
  transform:translateY(-2px);
}
.btn-ghost{
  border:1px solid var(--line);
  color:var(--navy);
}
.btn-ghost:hover{
  border-color:var(--navy);
  background:var(--navy);
  color:var(--ivory);
}
.btn-light{
  background:var(--brass);
  color:var(--navy-deep);
}
.btn-light:hover{
  background:var(--brass-light);
  transform:translateY(-2px);
}
.btn-arrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:600;
  color:var(--navy);
  border-bottom:1px solid var(--navy);
  padding-bottom:3px;
  transition:gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-arrow:hover{ gap:14px; color:var(--forest); border-color:var(--forest); }
.btn-arrow svg{ width:16px; height:16px; transition:transform 0.3s var(--ease); }

/* ---------- Header ---------- */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  padding:22px 0;
  transition:all 0.4s var(--ease);
  background:transparent;
}
.site-header.scrolled{
  background:rgba(245,243,236,0.92);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  font-family:var(--font-display);
  font-size:1.4rem;
  font-weight:500;
  color:var(--navy);
  display:flex;
  align-items:center;
  gap:8px;
}
.logo img{
  height:38px;
  width:auto;
  display:block;
}
.logo-text{
  display:flex;
  align-items:baseline;
  gap:6px;
  font-family:var(--font-display);
  font-size:1.3rem;
}
.site-header.on-dark .logo{ color:var(--ivory); }
.logo-on-dark-wrap{ display:none; align-items:center; gap:8px; }
.site-header.on-dark .logo-on-light{ display:none; }
.site-header.on-dark .logo-on-dark-wrap{ display:flex; }
.logo .dot{ color:var(--brass); }

.nav-links{
  display:flex;
  align-items:center;
  gap:38px;
}
.nav-links a{
  font-size:13.5px;
  font-weight:500;
  letter-spacing:0.02em;
  color:var(--navy);
  position:relative;
  padding:4px 0;
}
.site-header.on-dark .nav-links a{ color:var(--ivory); }
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0; height:1px;
  background:var(--brass);
  transition:width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after{ width:100%; }
.nav-links a.active{ color:var(--brass); }

.nav-cta{
  display:flex;
  align-items:center;
  gap:24px;
}

.burger{
  display:none;
  flex-direction:column;
  gap:5px;
  z-index:101;
}
.burger span{
  width:24px; height:1.5px;
  background:var(--navy);
  transition:all 0.3s var(--ease);
}
.site-header.on-dark .burger span{ background:var(--ivory); }

/* ---------- Mobile nav ---------- */
.mobile-nav{
  position:fixed;
  inset:0;
  background:var(--navy);
  z-index:99;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:32px;
  transform:translateY(-100%);
  transition:transform 0.5s var(--ease);
}
.mobile-nav.open{ transform:translateY(0); }
.mobile-nav a{
  font-family:var(--font-display);
  font-size:2rem;
  color:var(--ivory);
  padding:14px 0;
  border-bottom:1px solid var(--line-light);
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-deep);
  color:var(--ivory);
  padding:90px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:48px;
  padding-bottom:60px;
  border-bottom:1px solid var(--line-light);
}
.footer-brand .logo{ color:var(--ivory); margin-bottom:18px; }
.footer-brand p{ color:rgba(245,243,236,0.6); max-width:32ch; font-size:14.5px; }
.footer-col h4{
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--brass);
  font-weight:500;
  margin-bottom:20px;
}
.footer-col a, .footer-col li{
  display:block;
  color:rgba(245,243,236,0.75);
  font-size:14.5px;
  margin-bottom:13px;
  transition:color 0.25s;
}
.footer-col a:hover{ color:var(--brass-light); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:28px;
  font-size:13px;
  color:rgba(245,243,236,0.45);
}
.social-row{ display:flex; gap:16px; }
.social-row a{
  width:36px; height:36px;
  border:1px solid var(--line-light);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:all 0.3s var(--ease);
}
.social-row a:hover{ border-color:var(--brass); background:var(--brass); }
.social-row svg{ width:15px; height:15px; }

/* ---------- Sections generic ---------- */
section{ position:relative; }
.section-pad{ padding:130px 0; }
.section-pad-sm{ padding:80px 0; }

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:40px;
  margin-bottom:64px;
}

/* ---------- Reveal animation ---------- */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-delay-1{ transition-delay:0.1s; }
.reveal-delay-2{ transition-delay:0.2s; }
.reveal-delay-3{ transition-delay:0.3s; }

/* ---------- Utility ---------- */
.text-brass{ color:var(--brass); }
.text-forest{ color:var(--forest); }
.bg-navy{ background:var(--navy); color:var(--ivory); }
.bg-navy h2, .bg-navy h3{ color:var(--ivory); }
.bg-navy p{ color:rgba(245,243,236,0.7); }
.bg-forest{ background:var(--forest); color:var(--ivory); }
.bg-ivory-warm{ background:var(--ivory-warm); }

.divider{
  width:100%; height:1px;
  background:var(--line);
}

.tag-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 16px;
  border:1px solid var(--line);
  border-radius:30px;
  font-size:13px;
  font-weight:500;
}

@media (max-width: 980px){
  .nav-links, .nav-cta .btn-ghost{ display:none; }
  .burger{ display:flex; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:40px 24px; }
  .section-pad{ padding:90px 0; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:20px; }
}
@media (max-width: 600px){
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; gap:16px; align-items:flex-start; }
}

/* ============ WHATSAPP FLOATING BUTTON ============ */
.whatsapp-float{
  position:fixed;
  bottom:28px;
  right:24px;
  width:56px;
  height:56px;
  background:#25D366;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 16px rgba(37,211,102,0.4);
  z-index:999;
  transition:transform 0.25s, box-shadow 0.25s;
  text-decoration:none;
}
.whatsapp-float svg{
  width:30px;
  height:30px;
  color:#fff;
}
.whatsapp-float:hover{
  transform:scale(1.1);
  box-shadow:0 6px 24px rgba(37,211,102,0.5);
}
@media(max-width:600px){
  .whatsapp-float{
    bottom:20px;
    right:16px;
    width:50px;
    height:50px;
  }
  .whatsapp-float svg{
    width:26px;
    height:26px;
  }
}
