/* En-tête du nouveau site (nouveau/haut.html) : aussi chargé sur les Conseils restés en style interactif, d'où les classes hn- et les couleurs posées ici */
.haut { --fonce: #2F463A; --gris: #F3F3F3; --doux: #5B6A61; --trait: rgba(47, 70, 58, .12); --sauge: #8AA997; --ease: cubic-bezier(.2, .8, .2, 1); font-family: "Outfit", system-ui, sans-serif; }
.haut *, .haut *::before, .haut *::after { box-sizing: border-box; }
@keyframes hn-monte { from { opacity: 0; transform: translateY(20px); } }
/* ===== En-tête du site actuel (directions V et 1 du prototype) : tuile du logo, menu en pilule, contact ===== */
.haut { position: relative; z-index: 20; display: flex; align-items: flex-start; gap: 16px; width: min(1320px, calc(100% - 24px)); margin: 0 auto; height: 84px; }
.hn-logo { display: block; flex: none; width: 118px; height: 84px; margin-right: auto; }
.hn-logo img { width: 118px; height: 106px; padding: 10px 9px 9px; object-fit: contain; background: #fff; border-radius: 0 0 20px 20px; border-bottom: 4px solid var(--sauge); box-shadow: 0 10px 24px rgba(36, 54, 45, .2); transition: padding .3s, height .3s; }
.hn-logo:hover img, .hn-logo:focus-visible img { padding-top: 15px; height: 111px; }
.menu { display: flex; align-items: center; gap: 2px; margin-top: 18px; padding: 5px 8px; background: #fff; border-radius: 999px; border: 1px solid #E8DFD3; box-shadow: 0 6px 18px rgba(36, 54, 45, .07); }
.menu > a, .hn-sous summary { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; color: #23362C; cursor: pointer; list-style: none; }
.hn-sous summary::-webkit-details-marker { display: none; }
.hn-sous summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.menu > a:hover, .hn-sous summary:hover, .hn-sous[open] summary { background: #F1F5F2; }
.menu [aria-current], .menu [aria-current]:hover { background: var(--fonce); color: #fff; }
.hn-sous { position: relative; }
.hn-sous > div { position: absolute; top: calc(100% + 10px); left: 0; min-width: 280px; background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 18px 44px rgba(36, 54, 45, .16); display: flex; flex-direction: column; z-index: 20; animation: hn-monte .3s var(--ease); }
.hn-sous > div a { display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 10px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.hn-sous .menu-illu { flex: none; width: 32px; height: 32px; transition: rotate .2s, scale .2s; }
.hn-sous > div a:hover .menu-illu { rotate: -6deg; scale: 1.14; }
.hn-sous > div a:hover { background: var(--gris); }
.contact-haut { margin-top: 20px; display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 999px; background: #fff; color: #23362C; text-decoration: none; font-weight: 600; box-shadow: 0 6px 18px rgba(36, 54, 45, .1); transition: background .3s, color .3s; white-space: nowrap; }
.contact-haut:hover, body[data-espace="entreprises"] .contact-haut { background: var(--fonce); color: #fff; }
body[data-espace="institutions"] .menu [aria-current] { background: #5E8570; }
body[data-espace="particuliers"] .menu [aria-current] { background: #8A6A4C; }
.hn-sous > div { min-width: 330px; }
.hn-sous > div a { white-space: nowrap; }
@media (max-width: 520px) { .hn-sous > div { min-width: 0; width: calc(100vw - 40px); } .hn-sous > div a { white-space: normal; } }
.hn-sous-n { display: inline-block; min-width: 2.2em; font-size: .78rem; font-weight: 700; color: #A27C57; }
.hn-sous > div a:first-child:not(:has(.hn-sous-n)) { font-size: .9rem; color: var(--doux); border-bottom: 1px solid var(--trait); border-radius: 12px 12px 0 0; margin-bottom: 4px; }
@media (max-width: 900px) {
  .haut { flex-wrap: wrap; height: auto; }
  .hn-logo { width: 84px; height: 72px; }
  .hn-logo img { width: 84px; height: 76px; padding: 8px 6px 6px; }
  .menu { order: 3; width: 100%; margin-top: 10px; justify-content: space-between; }
  .menu > a, .hn-sous summary { padding: 9px 11px; }
  .hn-sous:last-child > div { left: auto; right: 0; }
}
/* Sur les Conseils (style interactif) : l'en-tête se pose sur la scène, comme celui de l'interactif */
.haut-sur { position: absolute; left: 0; right: 0; top: 0; z-index: 30; }
@media (max-width: 900px) { .haut-sur ~ main > :first-child { padding-top: 190px !important; } }
.hn-sous[open] summary[aria-current] { background: var(--fonce); color: #fff; }
@media (max-width: 420px) {
  .menu { padding: 4px; gap: 0; }
  .menu > a, .hn-sous summary { padding: 9px 9px; font-size: .92rem; gap: 4px; }
  .hn-sous summary::after { margin-left: 2px; }
}
/* Bas de page du nouveau site (nouveau/pied.html) sur Conseils et les histoires, par-dessus le style de l'interactif */
.haut-sur ~ .pied { padding: 20px clamp(20px, 6vw, 90px) 30px; }
.haut-sur ~ .pied .pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 30px; max-width: 1200px; margin: 0 auto; }
.haut-sur ~ .pied ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.haut-sur ~ .pied .pied-bas { max-width: 1200px; margin: 48px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; }
.haut-sur ~ .fin .fin-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.haut-sur ~ .fin .btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: #C8AA8C; color: #23362C; text-decoration: none; font-weight: 600; box-shadow: none; }
.haut-sur ~ .fin .btn i { font-style: normal; }
.haut-sur ~ .fin .fin-tel { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: #fff; color: #23362C; text-decoration: none; font-weight: 600; }
.haut-sur ~ .fin .fin-24 { margin-top: 14px; font-size: .9rem; font-weight: 600; color: #3E5A4B; }
@media (max-width: 900px) { .haut-sur ~ .pied .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .haut-sur ~ .pied .pied-grille { grid-template-columns: 1fr; } }
