/* =====================================================================
   Nadawis Tech — feuille de style unique du site V1
   ---------------------------------------------------------------------
   Palette : charte de marque NADAWIS Technologies v1.0 (14/08/2026),
   au chiffre près. Aucune couleur inventée.

   Règle d'emploi issue du calcul de contraste de la charte :
   la terre cuite #A65A3A ne descend PAS à 4,5:1 sur le beige minéral
   (3,81:1). Elle n'est donc jamais du texte courant : elle est un fond
   de bouton (blanc dessus = 5,07:1), un filet, une puce, un grand titre.

   Typographie : aucune police distante. Le couple Georgia / sans-serif
   système est celui du document de charte, où la typographie officielle
   est encore marquée « à confirmer ».
   ===================================================================== */

:root {
  --accent:      #A65A3A;  /* terre cuite   */
  --accent-soft: #D8C3A5;  /* sable         */
  --deep:        #5A4032;  /* brun profond  */
  --surface:     #E8DED1;  /* beige minéral */
  --ink:         #2F2F2F;  /* charbon       */

  --card:        #F7F3ED;  /* carte claire — valeur du document de charte */
  --pure:        #FFFFFF;
  --line:        rgba(90, 64, 50, .18);
  --line-fort:   rgba(90, 64, 50, .32);

  --display: Georgia, "Times New Roman", Times, serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --large: 74rem;          /* largeur maximale d'une bande de contenu */
  --lisible: 38rem;        /* longueur de ligne confortable */
  --gouttiere: 1.25rem;
  --rayon: 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;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 7.2vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 5vw, 2.3rem); color: var(--deep); }
h3 { font-size: clamp(1.12rem, 3.2vw, 1.28rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--deep); text-decoration-color: var(--accent); text-underline-offset: .25em; }
a:hover, a:focus-visible { color: var(--accent); }

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

hr.filet {
  width: 3.25rem; height: 2px; border: 0;
  background: var(--accent); opacity: .9;
  margin: 1.75rem 0;
}
hr.filet.centre { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- utilitaires */

.contenu {
  width: 100%;
  max-width: var(--large);
  margin: 0 auto;
  padding-left: var(--gouttiere);
  padding-right: var(--gouttiere);
}

.bande { padding: clamp(3rem, 9vw, 5.5rem) 0; }
.bande--claire { background: var(--card); }
.bande--pure   { background: var(--pure); }
.bande--sombre { background: var(--deep); color: var(--card); }
.bande--sombre h2, .bande--sombre h3 { color: var(--accent-soft); }
.bande--sombre a { color: var(--accent-soft); }
.bande--sombre a:hover, .bande--sombre a:focus-visible { color: var(--pure); }

.surtitre {
  font-family: var(--text);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
}
.bande--sombre .surtitre { color: var(--accent-soft); }

.chapeau {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--deep);
  max-width: 46rem;
}
.bande--sombre .chapeau { color: var(--card); }

.lisible { max-width: var(--lisible); }
.centre  { text-align: center; }
.centre .chapeau, .centre .lisible { margin-left: auto; margin-right: auto; }

.saut-contenu {
  position: absolute; left: -9999px; top: 0;
  background: var(--deep); color: var(--pure);
  padding: .7rem 1.1rem; z-index: 100; border-radius: 0 0 var(--rayon) 0;
}
.saut-contenu:focus { left: 0; color: var(--pure); }

/* ---------------------------------------------------------------- boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--rayon);
  font: inherit;
  font-weight: 600;
  font-size: .97rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn--principal {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--pure);              /* 5,07:1 — conforme */
}
.btn--principal:hover, .btn--principal:focus-visible {
  background: #8E4A2E; border-color: #8E4A2E; color: var(--pure);
}
.btn--secondaire {
  background: transparent;
  border-color: var(--line-fort);
  color: var(--deep);
}
.btn--secondaire:hover, .btn--secondaire:focus-visible {
  border-color: var(--deep); color: var(--deep); background: rgba(90,64,50,.06);
}
.bande--sombre .btn--secondaire { border-color: rgba(216,195,165,.55); color: var(--accent-soft); }
.bande--sombre .btn--secondaire:hover, .bande--sombre .btn--secondaire:focus-visible {
  border-color: var(--accent-soft); color: var(--pure); background: rgba(255,255,255,.08);
}
.btn:active { transform: translateY(1px); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.9rem;
}
.centre .actions { justify-content: center; }

/* ---------------------------------------------------------------- en-tête */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(232, 222, 209, .95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.entete__interne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding-top: .55rem;
  padding-bottom: .55rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.marque img { width: 30px; height: 31px; display: block; }
.marque__mot {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1;
  color: var(--ink);
}
.marque:hover .marque__mot, .marque:focus-visible .marque__mot { color: var(--accent); }

.bascule {
  display: none;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 1px solid var(--line-fort);
  border-radius: var(--rayon);
  color: var(--deep);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .55rem .8rem;
  cursor: pointer;
}
.bascule__barres { display: block; width: 17px; height: 11px; position: relative; }
.bascule__barres::before,
.bascule__barres::after,
.bascule__barres span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px;
}
.bascule__barres::before { top: 0; }
.bascule__barres span    { top: 4.5px; }
.bascule__barres::after  { bottom: 0; }

.nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav a {
  display: block;
  padding: .5rem .62rem;
  font-size: .93rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}
.nav a:hover, .nav a:focus-visible { color: var(--accent); background: rgba(166,90,58,.08); }
.nav a[aria-current="page"] {
  color: var(--deep);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}
.nav .nav__cta { margin-left: .5rem; }
.nav .nav__cta a {
  background: var(--accent); color: var(--pure); font-weight: 600;
  padding: .62rem 1rem; border-radius: var(--rayon); box-shadow: none;
}
.nav .nav__cta a:hover, .nav .nav__cta a:focus-visible { background: #8E4A2E; color: var(--pure); }

/* Sans JavaScript, la navigation reste dépliée : rien n'est jamais inaccessible.
   La classe .js n'est posée que si le script tourne. */
@media (max-width: 60em) {
  .js .bascule { display: inline-flex; }
  .js .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(47,47,47,.12);
    padding: .5rem var(--gouttiere) 1.1rem;
  }
  .js .nav[hidden] { display: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: .78rem .35rem; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: .8rem; }
  .nav .nav__cta { margin: .9rem 0 0; }
  .nav .nav__cta a { text-align: center; border-bottom: 0; padding: .85rem 1rem; }
}
@media (max-width: 60em) {
  .entete__interne { position: relative; }
}

/* ---------------------------------------------------------------- héros */

.heros {
  padding: clamp(3rem, 11vw, 6.5rem) 0 clamp(2.75rem, 8vw, 4.5rem);
  background-image: radial-gradient(120% 90% at 50% 0%, #F2EAE0 0%, rgba(242,234,224,0) 64%);
}
.heros h1 { margin-bottom: .5em; }
.heros .promesse {
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.32rem);
  font-style: italic;
  color: var(--deep);
  max-width: 40rem;
  margin: 0 0 1.4rem;
}
.heros .sous {
  font-size: clamp(1.02rem, 2.5vw, 1.13rem);
  max-width: 42rem;
}

.rappel-poles {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  font-size: .78rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--deep);
}

/* ---------------------------------------------------------------- grilles */

.grille {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2.2rem;
}
@media (min-width: 40em)  { .grille { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; } }
@media (min-width: 62em)  { .grille--3 { grid-template-columns: repeat(3, 1fr); } }

.carte {
  background: var(--pure);
  border: 1px solid var(--line);
  border-radius: var(--rayon);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.bande--pure .carte { background: var(--card); }
.bande--sombre .carte {
  background: rgba(255,255,255,.06);
  border-color: rgba(216,195,165,.28);
  color: var(--card);
}
.carte h3 { color: var(--deep); margin-bottom: .45em; }
.bande--sombre .carte h3 { color: var(--accent-soft); }
.carte .num {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
  display: block;
  margin-bottom: .55rem;
}
.carte ul { margin: .2rem 0 0; padding-left: 1.05rem; }
.carte li { margin-bottom: .3rem; }
.carte li::marker { color: var(--accent); }
.carte p:last-child, .carte ul:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- étapes */

.etapes { list-style: none; margin: 2.4rem 0 0; padding: 0; counter-reset: etape; }
.etape {
  counter-increment: etape;
  position: relative;
  padding: 0 0 2rem 3.4rem;
  border-left: 2px solid var(--line);
  margin-left: 1.1rem;
}
.etape:last-child { border-left-color: transparent; padding-bottom: 0; }
.etape::before {
  content: counter(etape);
  position: absolute;
  left: -1.15rem; top: -.15rem;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--pure);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.etape h3 { margin-bottom: .35em; color: var(--deep); }
.etape .livrable {
  display: inline-block;
  margin-top: .55rem;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--deep);
  background: var(--surface);
  border-radius: 4px;
  padding: .3rem .65rem;
}
.bande--claire .etape .livrable { background: var(--surface); }

/* ---------------------------------------------------------------- cas d'usage */

.cas {
  background: var(--pure);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 1.6rem 1.4rem;
  margin-bottom: 1.15rem;
}
.cas:last-child { margin-bottom: 0; }
.cas__secteur {
  font-size: .73rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem;
}
.cas h3 { margin-bottom: .5em; }
.cas dl { margin: 0; }
.cas dt {
  font-size: .78rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--deep);
  margin-top: 1rem;
}
.cas dd { margin: .25rem 0 0; }
.cas ul { margin: .25rem 0 0; padding-left: 1.05rem; }
.cas li { margin-bottom: .25rem; }
.cas li::marker { color: var(--accent); }

.etat {
  display: inline-block;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .04em;
  padding: .28rem .7rem;
  border-radius: 20px;
  background: var(--surface);
  color: var(--deep);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- avertissement honnêteté */

.note {
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 1.1rem 1.25rem;
  font-size: .95rem;
  color: var(--deep);
  margin: 2rem 0 0;
}
.bande--claire .note { background: var(--pure); }
.note strong { color: var(--ink); }

.attente {
  background: #FBF4EA;
  border: 1px dashed var(--accent);
  border-radius: var(--rayon);
  padding: 1.25rem 1.35rem;
  margin: 1.6rem 0;
}
.attente__titre {
  font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #8E4A2E; margin: 0 0 .5rem;
}

/* ---------------------------------------------------------------- tableaux legaux */

.tableau-legal {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 2rem;
  font-size: .92rem;
}
.tableau-legal th, .tableau-legal td {
  text-align: left;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tableau-legal thead th {
  font-size: .76rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--deep);
  background: var(--card);
  border-bottom: 1px solid var(--line-fort);
}
.tableau-legal tbody th[scope="row"] {
  font-weight: 600; color: var(--deep);
  width: 34%;
  background: var(--card);
}
.tableau-legal tbody tr:last-child th,
.tableau-legal tbody tr:last-child td { border-bottom: none; }

.note-date {
  font-size: .85rem;
  color: var(--deep);
  opacity: .8;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin-top: 2rem;
}


/* ---------------------------------------------------------------- listes cibles */

.cibles { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.cibles li {
  background: var(--pure);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: .42rem .95rem;
  font-size: .9rem;
  color: var(--deep);
}
.bande--pure .cibles li { background: var(--card); }
.bande--sombre .cibles li { background: rgba(255,255,255,.07); border-color: rgba(216,195,165,.3); color: var(--card); }

/* ---------------------------------------------------------------- formulaire */

.formulaire {
  background: var(--pure);
  border: 1px solid var(--line);
  border-radius: var(--rayon);
  padding: 1.5rem 1.35rem;
}
.champ { margin-bottom: 1.15rem; }
.champ:last-of-type { margin-bottom: 0; }
.champ label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: .38rem;
}
.champ .facultatif { font-weight: 400; color: #7A6A5C; }
.champ input, .champ select, .champ textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-fort);
  border-radius: var(--rayon);
  padding: .72rem .8rem;
}
.champ textarea { min-height: 8.5rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: var(--pure);
}
.champ input:invalid:not(:placeholder-shown) { border-color: #A63A2F; }
.aide { font-size: .84rem; color: #7A6A5C; margin: .35rem 0 0; }

.consentement {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--rayon);
  padding: .95rem 1rem;
  margin: 1.35rem 0 0;
}
.consentement input {
  width: 1.15rem; height: 1.15rem;
  margin: .22rem 0 0;
  flex: none;
  accent-color: var(--accent);
}
.consentement label { font-size: .9rem; line-height: 1.55; color: var(--ink); font-weight: 400; margin: 0; }

.pot-de-miel {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.message-envoi {
  margin: 1.2rem 0 0;
  padding: .95rem 1.1rem;
  border-radius: var(--rayon);
  font-size: .93rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  color: var(--deep);
}
.message-envoi[hidden] { display: none; }

/* ---------------------------------------------------------------- deux colonnes */

.duo { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 62em) { .duo { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
@media (min-width: 62em) { .duo--inverse { grid-template-columns: .9fr 1.1fr; } }

.coordonnees { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.coordonnees li { margin-bottom: 1.1rem; }
.coordonnees dt, .coordonnees .etiquette {
  display: block;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .2rem;
}
.coordonnees .valeur { font-size: 1.04rem; color: var(--ink); }

/* ---------------------------------------------------------------- appel final */

.appel { text-align: center; }
.appel h2 { color: var(--accent-soft); }
.appel .chapeau { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- pied */

.pied {
  background: var(--ink);
  color: var(--accent-soft);
  padding: clamp(2.75rem, 7vw, 3.75rem) 0 1.75rem;
}
.pied a { color: var(--accent-soft); text-decoration-color: rgba(216,195,165,.45); }
.pied a:hover, .pied a:focus-visible { color: var(--pure); text-decoration-color: var(--accent); }

.pied__haut { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 48em) { .pied__haut { grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; } }

.pied__marque { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.pied__marque img { width: 32px; height: 33px; display: block; }
.pied__marque span { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--pure); }
.pied__promesse { font-family: var(--display); font-style: italic; font-size: .98rem; max-width: 26rem; opacity: .92; }
.pied__signature {
  margin-top: 1.1rem;
  font-size: .73rem; letter-spacing: .19em; text-transform: uppercase; color: var(--accent-soft); opacity: .85;
}

.pied h2 {
  font-family: var(--text);
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .85rem;
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .5rem; font-size: .93rem; }

.pied__bas {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(216,195,165,.22);
  font-size: .82rem;
  opacity: .82;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  justify-content: space-between;
}
.pied__bas p { margin: 0; }

/* ---------------------------------------------------------------- impression */

@media print {
  .entete, .bascule, .actions, .pied__haut { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .bande--sombre { background: #fff; color: #000; }
}
