/* ==========================================================================
   Namsoli — site vitrine
   Palette déduite du logo :
     --ink     #000016  fond du logo (header, hero, footer)
     --blue    #0167FE  bleu principal (liens, boutons)
     --blue-2  #002DBC  bleu profond (hover, relief)
     --cyan    #00F0FF  accent unique (point du "i")
     --paper   #F7F9FC  fond des pages
     --text    #0F1730  texte
     --muted   #5A6478  texte secondaire
   Typographie : Manrope (variable), hébergée localement, aucune requête externe.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #000016;
  --ink-2: #060b2e;
  --blue: #0167fe;
  --blue-2: #002dbc;
  --cyan: #00f0ff;
  --paper: #f7f9fc;
  --white: #ffffff;
  --text: #0f1730;
  --muted: #5a6478;
  --rule: #d9dfe9;
  --rule-dark: rgba(255, 255, 255, 0.12);

  --font: "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-2); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--cyan); color: var(--ink);
  padding: 0.5rem 1rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--rule-dark);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 0.25rem 1.75rem; }
.nav a {
  color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--cyan); }
.lang {
  margin-left: 0.75rem; padding: 0.3rem 0.65rem !important; border: 1px solid var(--rule-dark) !important;
  border-radius: var(--radius); font-size: 0.85rem !important; letter-spacing: 0.02em;
}
.lang:hover { border-color: rgba(255, 255, 255, 0.4) !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule-dark); color: var(--white);
  border-radius: var(--radius); padding: 0.5rem 0.7rem; font: inherit; font-size: 0.9rem; cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px; z-index: 50;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--rule-dark);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--rule-dark); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule-dark); color: var(--cyan); }
  .lang { margin: 0.75rem 0 0; align-self: flex-start; }
  .site-header { position: relative; }
}

/* --------------------------------------------------------------------------
   Hero (accueil) — même fond que le logo pour un raccord invisible
   -------------------------------------------------------------------------- */
.hero {
  background: var(--ink); color: var(--white);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }
.hero-logo { width: min(100%, 520px); margin-inline: auto; }
.hero h1 { color: var(--white); margin-bottom: 0.5em; }
.hero p { color: rgba(255, 255, 255, 0.78); font-size: 1.125rem; max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 1.5rem; }
.hero .actions a:not(.btn) { color: rgba(255, 255, 255, 0.85); }

.btn {
  display: inline-block; background: var(--blue); color: var(--white); text-decoration: none;
  font-weight: 700; padding: 0.85rem 1.4rem; border-radius: var(--radius); border: 0; font: inherit; cursor: pointer;
}
.btn:hover { background: var(--blue-2); color: var(--white); }
.btn:focus-visible { outline-color: var(--cyan); }

/* --------------------------------------------------------------------------
   Fiche société — l'élément signature : les faits vérifiables, présentés
   comme un extrait de registre. Point cyan = écho du point du "i" du logo.
   -------------------------------------------------------------------------- */
.fiche {
  background: var(--white); border-top: 4px solid var(--blue);
}
.fiche .wrap { padding: 2rem 0 2.25rem; }
.fiche dl {
  display: grid; gap: 1.5rem 2.5rem; margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.fiche dt {
  font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 0.25rem;
  padding-left: 1rem; position: relative;
}
.fiche dt::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18);
}
.fiche dd { margin: 0; padding-left: 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Sections de contenu
   -------------------------------------------------------------------------- */
.page-title { background: var(--white); border-bottom: 1px solid var(--rule); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.page-title h1 { margin-bottom: 0.25em; }
.page-title p { color: var(--muted); font-size: 1.125rem; margin: 0; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.alt { background: var(--white); }
.section h2 { max-width: var(--measure); }

.cols { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cols > * { min-width: 0; }

/* Liste descriptive (à propos / mentions légales) */
.facts { margin: 0; max-width: 720px; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 0.15rem 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 560px) { .facts > div { grid-template-columns: 220px 1fr; } }
.facts dt { font-weight: 700; color: var(--muted); font-size: 0.95rem; }
.facts dd { margin: 0; }

/* Liste d'activités / arguments : titres + descriptions, sans cartes */
.list { list-style: none; padding: 0; margin: 0; max-width: 780px; }
.list li { padding: 1.1rem 0 1.1rem 1.25rem; border-top: 1px solid var(--rule); position: relative; margin: 0; }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list li::before {
  content: ""; position: absolute; left: 0; top: 1.65rem; width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.list li.next::before { background: transparent; border: 2px solid var(--blue); width: 5px; height: 5px; }
.list h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.list p { margin: 0; color: var(--muted); }
.list .when { font-size: 0.85rem; color: var(--blue); font-weight: 700; margin-left: 0.5rem; }

/* Bandeau d'appel à l'action (bas de page) */
.cta { background: var(--ink); color: var(--white); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { color: var(--white); margin: 0 0 0.3em; }
.cta p { color: rgba(255, 255, 255, 0.75); margin: 0; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.form { max-width: 640px; }
.form .field { margin-bottom: 1.1rem; }
.form label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.form label .opt { font-weight: 500; color: var(--muted); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.85rem; color: var(--text);
  background: var(--white); border: 1px solid #b9c2d1; border-radius: var(--radius);
}
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: 2px solid rgba(1, 103, 254, 0.25); outline-offset: 0; }
.form textarea { min-height: 160px; resize: vertical; }
.form .consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.form .consent input { width: auto; margin-top: 0.3rem; }
/* Honeypot : hors écran, jamais rempli par un humain */
.form .hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

.notice { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.5rem; max-width: 640px; border: 1px solid; }
.notice[hidden] { display: none; }
.notice.ok { background: #e8fbf1; border-color: #9edbb8; color: #0d5c33; }
.notice.err { background: #fff1f1; border-color: #f0b4b4; color: #8a1f1f; }

.contact-aside address { font-style: normal; line-height: 1.7; }
.contact-aside .k { display: block; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal .facts { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; padding: 2.5rem 0 2rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: start; } }
.site-footer img { height: 32px; width: auto; }
.site-footer p { margin: 0.35rem 0 0; max-width: none; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--white); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.site-footer .links li { margin: 0; }
.site-footer .legal-line { grid-column: 1 / -1; border-top: 1px solid var(--rule-dark); padding-top: 1rem; margin-top: 0.5rem; color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }
