/* Nehassim — refonte « la carte d'abord » (BRIEF-DESIGN-C, 2026-11-20).
   Jetons de design + barre de navigation commune. Aucun dégradé : que des aplats. */
:root {
  --c-encre: #12233D;      /* titres, texte fort, aplats sombres */
  --c-nav: #1B3A6B;        /* barre de navigation, pied de page */
  --c-accent: #12618F;     /* liens, épingle active, badges, boutons */
  --c-decor: #4FB3B2;      /* point du logo, filets décoratifs (jamais pour du texte) */
  --c-texte: #54637A;      /* texte courant */
  --c-attenue: #8A97AA;    /* libellés, texte atténué (gros texte ou décor) */
  --c-bordure: #E2E8F0;
  --c-doux: #F6F8FB;       /* fonds doux */
  --c-accent-pale: #EEF5FA;/* fond de la fiche survolée / sélectionnée */
  --c-blanc: #FFFFFF;
  --r-el: 10px;            /* rayon des éléments (8–13 px) */
  --r-pastille: 999px;
  --ombre-c: 0 1px 2px rgba(18, 35, 61, .06), 0 4px 14px rgba(18, 35, 61, .08);
  --h-nav: 66px;
}

/* ---------- Barre de navigation ---------- */
.barre-nav {
  position: relative; z-index: 1000;
  display: flex; align-items: center; gap: 20px;
  height: var(--h-nav); padding: 0 24px;
  background: var(--c-nav); color: var(--c-blanc);
  font-family: "Inter", system-ui, sans-serif;
}
.barre-marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-blanc); flex: none; }
.barre-logo { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 3px 10px;
  background: var(--c-blanc); border-radius: var(--r-pastille); }
.barre-logo img { height: 38px; width: auto; display: block; }
.barre-nom { font-weight: 800; font-size: 17px; letter-spacing: 1.6px; }

.barre-liens { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.barre-liens > a, .barre-groupe-titre {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  color: var(--c-blanc); text-decoration: none; font: 600 15px/1 "Inter", sans-serif;
  background: none; border: 0; border-radius: var(--r-el); cursor: pointer;
  box-shadow: inset 0 -3px 0 transparent;
}
.barre-liens > a:hover, .barre-groupe-titre:hover { background: rgba(255, 255, 255, .08); }
.barre-liens > a[aria-current="page"], .barre-groupe-titre.actif { box-shadow: inset 0 -3px 0 var(--c-decor); border-radius: 0; }
.barre-liens a:focus-visible, .barre-groupe-titre:focus-visible, .barre-burger:focus-visible, .barre-marque:focus-visible {
  outline: 2px solid var(--c-blanc); outline-offset: 2px; }
.barre-groupe { position: relative; }
.barre-groupe-titre .picto-chevron { transition: transform .15s; }
.barre-groupe-titre[aria-expanded="true"] .picto-chevron { transform: rotate(180deg); }
.barre-sous { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 6px;
  background: var(--c-blanc); border-radius: var(--r-el); box-shadow: var(--ombre-c); }
.barre-groupe-titre[aria-expanded="true"] + .barre-sous { display: block; }
.barre-sous a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--c-encre); text-decoration: none; font-weight: 600; font-size: 15px; }
.barre-sous a:hover, .barre-sous a[aria-current="page"] { background: var(--c-doux); color: var(--c-accent); }
.barre-whatsapp { margin-left: 8px; background: var(--c-blanc) !important; color: var(--c-encre) !important;
  border-radius: var(--r-pastille) !important; padding: 0 18px !important; box-shadow: none !important; }
.barre-whatsapp:hover { background: #E9EEF5 !important; }
.barre-whatsapp svg { width: 20px; height: 20px; flex: none; }

.barre-burger, .barre-fermer { display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: none; border: 0; color: inherit; border-radius: var(--r-el); cursor: pointer; }
.barre-burger { margin-left: auto; color: var(--c-blanc); }
.barre-burger:hover { background: rgba(255, 255, 255, .08); }
.barre-voile { position: fixed; inset: 0; background: rgba(18, 35, 61, .45); z-index: 1001; }

/* Champ de recherche de la barre (catalogue, fiche) */
.barre-recherche { flex: 1 1 auto; max-width: 560px; margin: 0 auto; }
.barre-recherche form { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 14px;
  background: var(--c-blanc); border-radius: var(--r-pastille); }
.barre-recherche .picto { width: 18px; height: 18px; color: var(--c-accent); flex: none; stroke-width: 2; }
.barre-recherche input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none;
  font: 600 15px "Inter", sans-serif; color: var(--c-encre); }
.barre-recherche input::placeholder { color: var(--c-encre); opacity: 1; }
.barre-recherche input:focus::placeholder { color: var(--c-attenue); }
.barre-recherche form:focus-within { box-shadow: 0 0 0 3px rgba(79, 179, 178, .6); }
.barre-recherche-compte { flex: none; font-size: 13px; font-weight: 600; color: var(--c-texte); padding: 0 8px;
  border-left: 1px solid var(--c-bordure); white-space: nowrap; }

/* Un seul menu : sous 1024 px, les liens passent dans un panneau latéral. */
@media (max-width: 1023px) {
  .barre-nav { padding: 0 12px 0 16px; gap: 12px; }
  .barre-burger, .barre-fermer { display: inline-flex; }
  .barre-liens { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002; width: min(320px, 86vw);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 24px; margin: 0;
    background: var(--c-nav); transform: translateX(100%); transition: transform .2s ease; visibility: hidden; overflow-y: auto; }
  body.menu-ouvert .barre-liens { transform: none; visibility: visible; }
  body.menu-ouvert { overflow: hidden; }
  .barre-fermer { align-self: flex-end; color: var(--c-blanc); margin-bottom: 8px; }
  .barre-liens > a, .barre-groupe-titre { width: 100%; justify-content: flex-start; font-size: 17px; padding: 0 12px; }
  .barre-liens > a[aria-current="page"], .barre-groupe-titre.actif { box-shadow: inset 3px 0 0 var(--c-decor); }
  .barre-groupe-titre .picto-chevron { display: none; }
  .barre-sous { display: block; position: static; background: none; box-shadow: none; padding: 0 0 6px 12px; }
  .barre-sous a { color: #DCE6F3; }
  .barre-sous a:hover, .barre-sous a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: var(--c-blanc); }
  .barre-whatsapp { margin: 14px 0 0; justify-content: center !important; }
  .barre-recherche { max-width: none; }
}
@media (max-width: 599px) {
  .barre-nom { display: none; }
  .barre-recherche-compte { display: none; }
}
@media (prefers-reduced-motion: reduce) { .barre-liens { transition: none; } }

/* ---------- Pied de page (fond encre, quatre colonnes) ---------- */
.pied-c { background: var(--c-encre); color: #C8D2E0; margin-top: 64px; font-size: 15px; line-height: 1.55; }
.pied-c-grille { max-width: 1200px; margin: 0 auto; padding: 44px 24px 40px; display: grid; gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.pied-c h2 { margin: 0 0 12px; color: var(--c-blanc); font-size: 14px; font-weight: 800; letter-spacing: .2px; }
.pied-c p { margin: 0 0 10px; }
.pied-c ul { list-style: none; margin: 0; padding: 0; }
.pied-c li a { display: inline-flex; align-items: center; min-height: 36px; color: #E3E9F2; text-decoration: none; }
.pied-c li a:hover { color: var(--c-blanc); text-decoration: underline; }
.pied-c a:focus-visible { outline: 2px solid var(--c-blanc); outline-offset: 2px; }
.pied-c-nom { display: flex; align-items: center; gap: 10px; color: var(--c-blanc); font-weight: 800; letter-spacing: 1.6px; font-size: 16px; }
.pied-c-nom .barre-logo { height: 38px; padding: 2px 8px; }
.pied-c-nom .barre-logo img { height: 32px; }
.pied-c-petit { font-size: 13px; color: #A9B6C8; }
.pied-c-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; margin-top: 4px;
  background: var(--c-blanc); color: var(--c-encre); border-radius: var(--r-pastille); font-weight: 700; text-decoration: none; }
.pied-c-btn:hover { background: #E9EEF5; }
@media (max-width: 899px) {
  .pied-c-grille { grid-template-columns: 1fr 1fr; padding: 36px 16px; gap: 28px 20px; }
  .pied-c-marque { grid-column: 1 / -1; }
}
@media (max-width: 479px) { .pied-c-grille { grid-template-columns: 1fr; } }
body.page-carte .pied-c { display: none; }
body:has(.barre-wa) .pied-c { padding-bottom: 72px; }
@media (min-width: 900px) { body:has(.barre-wa) .pied-c { padding-bottom: 0; } }

/* ---------- Épingles de carte (catalogue, accueil, fiche) ---------- */
/* Épingles : le prix, pas un point. Active = accent, texte blanc. */
.epingle-ancre { background: none; border: 0; }
.epingle { position: absolute; left: 0; bottom: 8px; transform: translateX(-50%);
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; white-space: nowrap;
  background: var(--c-blanc); color: var(--c-encre); border: 1px solid #C9D3E0; border-radius: var(--r-pastille);
  box-shadow: 0 1px 3px rgba(18, 35, 61, .18); font: 800 13px/1 "Inter", sans-serif; cursor: pointer; }
.epingle::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 9px; height: 9px; margin-left: -5px;
  background: inherit; border-right: 1px solid #C9D3E0; border-bottom: 1px solid #C9D3E0; transform: rotate(45deg); }
.epingle-groupe { background: var(--c-encre); color: var(--c-blanc); border-color: var(--c-encre); gap: 6px; }
.epingle-groupe::after { border-color: var(--c-encre); }
.epingle-groupe .n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: var(--r-pastille); background: var(--c-blanc); color: var(--c-encre); font-size: 12px; }
.epingle.est-active, .epingle:hover { background: var(--c-accent); color: var(--c-blanc); border-color: var(--c-accent); z-index: 2; }
.epingle.est-active::after, .epingle:hover::after { border-color: var(--c-accent); }
.epingle-groupe.est-active .n, .epingle-groupe:hover .n { color: var(--c-accent); }
.leaflet-marker-icon:has(.est-active) { z-index: 100000 !important; }
.epingle:focus-visible { outline: 2px solid var(--c-encre); outline-offset: 2px; }


/* ---------- Badges (catalogue, fiche) ---------- */
.badge-c { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-pastille);
  font-size: 12px; font-weight: 700; line-height: 1; }
.badge-c-livraison { background: #E4EFF6; color: var(--c-accent); }
.badge-c-visite { background: var(--c-encre); color: var(--c-blanc); }
.badge-c .picto { width: 12px; height: 12px; stroke-width: 3; }

/* ---------- Pages restantes (réunions, questions, villes…) : même identité ----------
   Les anciennes variables de site.css prennent les valeurs des jetons du brief C. */
:root {
  --marine: #12233D;         /* encre */
  --marine-fonce: #0B1729;
  --lien: #12618F;           /* accent */
  --ciel: #4FB3B2;           /* décor */
  --orange: #12618F;         /* l'ancien orange des titres et de l'avertissement devient l'accent */
  --doux-1: #F6F8FB;
  --doux-2: #EEF5FA;
  --doux-3: #F6F8FB;
  --bordure: #E2E8F0;
  --texte-2: #54637A;
  --texte-3: #54637A;
  --attenue: #8A97AA;
}
#contenu h1, #contenu h2 { font-weight: 800; }
#contenu h1 { letter-spacing: -1.1px; }
#contenu h2 { letter-spacing: -.5px; }
.mer-gauche { background: var(--c-nav); }             /* mise en relation : moitié bleu marine */
.mer-arguments .picto { color: var(--c-decor); }
input::placeholder { color: #6B788C; }
.etape { border-top-color: #D5DCE6; }

/* ---------- Barre de navigation claire (demande du 2026-11-20) ----------
   Fond blanc, logo seul et plus grand, bouton WhatsApp vert avec le logo officiel. */
:root { --h-nav: 84px; }
.barre-nav { background: var(--c-blanc); color: var(--c-encre); border-bottom: 1px solid var(--c-bordure); }
.barre-logo-img { display: block; height: 68px; width: auto; }
.barre-liens > a, .barre-groupe-titre { color: var(--c-encre); }
.barre-liens > a:hover, .barre-groupe-titre:hover { background: var(--c-doux); }
.barre-liens > a[aria-current="page"], .barre-groupe-titre.actif { box-shadow: inset 0 -3px 0 var(--c-accent); }
.barre-liens a:focus-visible, .barre-groupe-titre:focus-visible, .barre-burger:focus-visible, .barre-marque:focus-visible {
  outline-color: var(--c-accent); }
.barre-sous { border: 1px solid var(--c-bordure); }
.barre-burger { color: var(--c-encre); }
.barre-burger:hover { background: var(--c-doux); }
.barre-whatsapp { background: #25D366 !important; color: #FFFFFF !important; gap: 9px; }
.barre-whatsapp:hover { background: #1EBE5A !important; }
.barre-whatsapp svg { width: 22px; height: 22px; }
.barre-recherche form { background: var(--c-doux); border: 1px solid var(--c-bordure); }
.barre-recherche form:focus-within { box-shadow: 0 0 0 3px rgba(18, 97, 143, .25); border-color: var(--c-accent); }
@media (max-width: 1023px) {
  .barre-liens { background: var(--c-blanc); box-shadow: -8px 0 24px rgba(18, 35, 61, .12); }
  .barre-fermer { color: var(--c-encre); }
  .barre-liens > a[aria-current="page"], .barre-groupe-titre.actif { box-shadow: inset 3px 0 0 var(--c-accent); }
  .barre-sous { border: 0; }
  .barre-sous a { color: var(--c-texte); }
  .barre-sous a:hover, .barre-sous a[aria-current="page"] { background: var(--c-doux); color: var(--c-accent); }
}
@media (max-width: 599px) {
  :root { --h-nav: 72px; }
  .barre-logo-img { height: 56px; }
}

/* Réunions : fond de page = fond du bandeau des pages questions ; les encarts doux passent en blanc pour rester visibles. */
body.page-reunions { background: var(--doux-3); }
body.page-reunions .encart-doux { background: var(--c-blanc); border: 1px solid var(--c-bordure); }
body.page-reunions .rond-picto { background: var(--c-blanc); }
.merci .merci-numero { margin: 10px 0 0; font-size: 14px; color: var(--c-texte); font-variant-numeric: tabular-nums; }
/* Suggestions « Votre ville en France » (réutilise .suggestions de site.css) */
.champ-suggestions { position: relative; }
.suggestions .sugg-dep { color: var(--c-texte); margin-left: 4px; }
[data-ville-fr] .suggestions { min-width: min(300px, calc(100vw - 64px)); }
[data-ville-fr] .suggestions li { display: block; padding: 12px 14px; line-height: 1.3; }
/* Bandeau d'erreur du formulaire réunions : liste de ce qui manque */
.erreur-globale p { margin: 0; }
.erreur-globale ul { margin: 6px 0 0; padding-left: 20px; }
.erreur-globale li { margin: 2px 0; }
