:root {
  --max: 1100px;
  --pad: 1rem;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);

  /* Base colors (light) */
  --text: #111827;
  --muted: #4B5563;
  --bg: #fdfdfd;
  --soft: #E8E8E8;
  --line: #E5E7EB;
  --accent: #111827;

  /* Surfaces (light) */
  --header-bg: #f7f7f7;
  --footer-bg: #f1f1f1;
  --surface: #ffffff;
  /* cards, buttons, pills, inputs */
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: var(--surface);
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 9999
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  /* aligne logo et bloc texte */
  gap: .7rem;
  text-decoration: none;
}

.site-logo {
  height: 50px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-text span {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: .2px
}

.brand span {
  font-size: .88rem;
  color: var(--muted)
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px
}

nav.primary-nav {
  display: none;
  width: 100%;
  padding: 0 0 .8rem 0;
}

nav.primary-nav.open {
  display: block
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.nav-list a {
  display: flex;
  align-items: center;
  padding: .65rem .75rem;
  border-radius: 12px;
}

.nav-list a.active {
  background: transparent !important;
  text-decoration: none;
  font-weight: 600;
}

.nav-cta {
  margin-top: .35rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(.98)
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn.small {
  padding: .55rem .85rem;
  border-radius: 12px;
  font-weight: 600
}

  .mobile-only {
    display: inline-block;
  }

  .desktop-only {
    display: none;
  }

main {
  padding: 1.2rem 0 2.5rem
}

.hero {
  padding: 2.2rem 0 1.4rem;
}

.hero h1 {
  margin: .3rem 0;
  font-size: 2rem;
  line-height: 1.15
}

.hero p {
  margin: .65rem 0 1.1rem;
  color: var(--muted);
  max-width: 80ch
}

.hero .actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap
}

.section {
  padding: 1.25rem 0
}

.section h2 {
  margin: 0 0 .6rem;
  font-size: 1.35rem
}

.section p {
  margin: .45rem 0;
  color: var(--muted)
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
}

.card.soft {
  background: var(--soft)
}

.card h3 {
  margin: .1rem 0 .5rem;
  font-size: 1.1rem
}

.card ul {
  margin: .4rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted)
}

.card li {
  margin: .15rem 0
}

.pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .7rem
}

.pill {
  font-size: .85rem;
  padding: .35rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface)
}

.cta-band {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-band strong {
  font-size: 1.05rem
}

.cta-band span {
  color: var(--muted)
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  background: var(--footer-bg);
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer small {
  color: var(--muted)
}

.footer a {
  text-decoration: none
}

.footer a:hover {
  text-decoration: underline
}

.site-footer {
  padding: 1.5rem 0 1rem;
}

.site-footer h3 {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}

.site-footer p,
.site-footer li {
  margin: .25rem 0;
  line-height: 1.4;
}

.footer-bottom {
  margin-top: 1.25rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  font-size: .6rem;
  color: var(--muted);
}

.kv {
  display: flex;
  flex-direction: column;
  gap: .25rem
}

.kv .label {
  color: var(--muted);
  font-size: .9rem
}

.kv .value {
  font-weight: 600
}

.form {
  display: grid;
  gap: .75rem;
  max-width: 760px;
}

.field {
  display: grid;
  gap: .35rem
}

label {
  font-weight: 600
}

input,
select,
textarea {
  width: 100%;
  padding: .75rem .85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

textarea {
  min-height: 140px;
  resize: vertical
}

.help {
  color: var(--muted);
  font-size: .92rem
}

.breadcrumb {
  color: var(--muted);
  font-size: .95rem;
  margin-top: .6rem
}

.breadcrumb a {
  color: var(--muted)
}

.breadcrumb a:hover {
  color: var(--text)
}

/* Section "Un besoin précis" : icônes ciblées */
.needs-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  gap: 1rem;
}

.need-card {
  width: 100%;
}

.needs-grid .need-row {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.needs-grid .need-ico {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
  flex: 0 0 auto;
}

.needs-grid .need-text {
  min-width: 0;
}

.needs-grid .need-text strong {
  display: inline-block;
  margin-bottom: .15rem;
}





/* -----------------------------
   Dark Mode (auto)
   ----------------------------- 
@media (prefers-color-scheme: dark) {
  :root {
    
    --bg: #0f1115;
    --text: #e5e7eb;
    --muted: #bdc4d1;

    
    --line: #262a33;
    --soft: #334258;
    --surface: #121722;

    
    --header-bg: #141821;
    --footer-bg: #1a1f29;

    /
    --accent: #e5e7eb;

    /
    --shadow: 0 10px 28px rgba(0, 0, 0, .45);
  } 

  /* Improve form controls + focus clarity 
  input:focus,
  select:focus,
  textarea:focus,
  .nav-toggle:focus,
  .btn:focus {
    outline: 2px solid rgba(229, 231, 235, .35);
    outline-offset: 2px;
  }

  /* Primary button invert (light on dark) 
  .btn.primary {
    background: var(--accent);
    color: #0f1115;
    border-color: var(--accent);
  }

  .btn:hover {
    filter: brightness(1.02)
  }


  .nav-toggle {
    color: var(--text);
    background: var(--surface);
    border-color: var(--line);
  }


  /* 3) Burger : au cas où, force le stroke du SVG 
  .nav-toggle svg {
    stroke: var(--text);
  }

  /* Active nav item stays visible 
  .nav-list a.active {
    background: rgba(255, 255, 255, 0.06);
  }

  /* Skip link background already uses --surface 
} */

/* -----------------------------
   Responsive
   ----------------------------- */
@media (min-width: 900px) {


.mobile-only { display: none; }
.desktop-only { display: inline-block; }

  .needs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle {
    display: none
  }

  nav.primary-nav {
    display: block;
    width: auto;
    padding: 0
  }

  .nav-list {
    flex-direction: row;
    gap: .25rem;
    align-items: center
  }

  .nav-list a {
    padding: .55rem .7rem
  }

  .nav-cta {
    margin: 0 0 0 .4rem
  }

  .hero h1 {
    font-size: 2.6rem
  }

  .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr
  }

  header.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  /* Ta "navbar" ne sert plus qu’à la marque sur desktop */
  .navbar {
    padding: .8rem 0;
  }

  nav.primary-nav {
    display: flex;
    /* au lieu de block */
    align-items: center;
    gap: .6rem;
    width: auto;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
  }

  .nav-cta {
    margin: 0 0 0 .6rem;
    align-items: center;
    flex-wrap: nowrap;
    /* évite l’effet “boutons qui sautent” */
  }

  .nav-cta a.btn.small:first-child {
    display: none;
  }
/* Liens de navigation : style sobre */
.primary-nav .nav-list a.nav-link {
  position: relative;
  display: inline-block;
   padding: .25rem .40rem;
  text-decoration: none;
  color: inherit;
  opacity: .86;
}

/* Hover léger (sobre) */
.primary-nav .nav-list a.nav-link:hover {
  opacity: 1;
}

/* Underline discret (inactif par défaut) */
.primary-nav .nav-list a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  gap: 1.75rem; 
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease, opacity 160ms ease;
}

/* Actif : underline visible */
.primary-nav .nav-list a.nav-link.active {
  opacity: 1;
}

.primary-nav .nav-list a.nav-link.active::after {
  opacity: .9;
  transform: scaleX(1);
}


.primary-nav .nav-list a.nav-link:hover::after {
  opacity: .35;
  transform: scaleX(1);
}
}