/* ======================================================
   CODEX – CSS GLOBAL (PRODUCTION READY)
====================================================== */

/* ======================
   VARIABLES
====================== */

:root{
  --text:#111;
  --muted:#666;
  --soft:#f5f6f8;
  --border:#e6e6e6;
  --max:1100px;
}

/* ======================
   RESET
====================== */

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif;
  color:var(--text);
  line-height:1.7;
  background:#fff;
}

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

/* ======================
   CONTAINER
====================== */

.container{
  width:100%;
  max-width:var(--max);
  margin:auto;
  padding:0 clamp(18px,5vw,40px);
}

/* ======================
   HEADER
====================== */

.site-header{
  background:#fff;
  border-bottom:1px solid var(--border);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  max-width:var(--max);
  margin:auto;
  padding-left:24px;
  padding-right:24px;
}

.logo{
  font-weight:700;
  font-size:18px;
  letter-spacing:.04em;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:26px;
}

.nav-links a{
  font-size:15px;
  color:#222;
}

.nav-links a:hover{
  text-decoration:underline;
}

/* ======================
   MENU BUTTONS
====================== */

.burger{
  display:none;
  font-size:26px;
  background:none;
  border:none;
  cursor:pointer;
}

.nav-close{
  display:none;
  font-size:26px;
  background:none;
  border:none;
  cursor:pointer;
}

/* ======================
   MOBILE NAV
====================== */

@media (max-width:768px){

  .burger{
    display:block;
  }

  .nav-links{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:32px;
    font-size:18px;

    transform:translateY(-100%);
    transition:transform .35s ease;
    z-index:9998;
  }

  .nav-links.open{
    transform:translateY(0);
  }

  .nav-close{
    position:fixed;
    top:18px;
    right:18px;
    z-index:10000;
  }

  /* état ouvert */
  .nav-inner.open .nav-close{
    display:block;
  }

  .nav-inner.open .burger{
    display:none;
  }

}

/* ======================
   HERO
====================== */

.hero{
  padding:120px 0 100px;
}

.hero-inner{
  max-width:720px;
}

.hero h1{
  font-size:54px;
  line-height:1.1;
  margin-bottom:24px;
}

.hero p{
  font-size:19px;
  color:var(--muted);
  max-width:720px;
}

/* ======================
   HERO MOBILE
====================== */

@media (max-width:768px){

  .hero{
    padding:80px 0 60px;
  }

  .hero h1{
    font-size:36px;
  }

}

/* ======================
   SECTIONS
====================== */

section{
  padding:60px 0;
}

.section-soft{
  background:var(--soft);
}

/* ======================
   TEXT
====================== */

h2{
  font-size:28px;
  margin-bottom:16px;
}

p{
  margin-bottom:16px;
  max-width:720px;
}

ul{
  max-width:720px;
  padding-left:20px;
}

li{
  margin-bottom:8px;
}

.muted{
  color:var(--muted);
  font-size:14px;
}

/* ======================
   BUTTONS
====================== */

.btn{
  display:inline-block;
  margin-top:24px;
  background:#111;
  color:#fff;
  padding:16px 34px;
  border-radius:14px;
  font-size:15px;
  font-weight:500;
  transition:.2s;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

.btn.primary{
  background:#3b5ccc;
}

.btn.primary:hover{
  background:#2f4db3;
}

/* ======================
   FOOTER
====================== */

.site-footer{
  margin-top:80px;
  border-top:1px solid var(--border);
  padding:40px 0;
  font-size:14px;
  color:#777;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:32px;
}

.footer-bottom{
  text-align:center;
  margin-top:40px;
  font-size:13px;
  color:#888;
}

/* ======================
   UTILITIES
====================== */

.centered{
  text-align:center;
  margin:auto;
}

html{
  scroll-behavior:smooth;
}
