/* ==========================================================================
   ORIUM v4 — COMPOSANTS PREMIUM
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

/* ============================================================================
   HEADER (sobre, institutionnel, logo dominant)
   ============================================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 21, 48, .06);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.6rem, 5vw, 3rem);
  gap: 1.5rem;
  flex-wrap: nowrap;
}
.header-l { flex-shrink: 0; }
.header-r { flex-shrink: 0; flex-wrap: nowrap; display: flex; align-items: center; gap: .9rem; }
.nav-link, .header-cta, .tel-num { white-space: nowrap; }
.nav-d { flex-wrap: nowrap !important; }

/* Logo (priorité visuelle) */
.logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--bleu-nuit);
  flex-shrink: 0;
}
.logo-svg { width: 42px; height: 42px; flex-shrink: 0; }
.logo-txt {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: .01em;
  line-height: 1;
  color: var(--bleu-nuit);
}
.logo-txt small {
  display: block;
  font-family: var(--ff-body);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--gris);
  text-transform: uppercase;
  margin-top: 4px;
}

/* CTA Calculateur — dans la ligne du menu, à côté du téléphone (outline sobre) */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 1px solid var(--rouge);
  color: var(--rouge);
  padding: .6rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .01em;
  transition: var(--d) var(--ease);
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--rouge);
  color: var(--creme);
}
.header-cta svg { width: 14px; height: 14px; }

/* Navigation desktop */
.nav-d {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-d > li { position: relative; }
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--bleu-nuit);
  padding: .6rem 0;
  display: flex;
  align-items: center;
  gap: .35rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--or-fonce); }
.nav-link .chev {
  width: 10px; height: 10px;
  opacity: .6;
  transition: transform var(--d);
}
.nav-d > li:hover .chev { transform: rotate(180deg); }

/* Mega dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--blanc);
  border: 1px solid var(--gris-tres-clair);
  border-radius: var(--r);
  box-shadow: var(--sh-l);
  opacity: 0;
  visibility: hidden;
  transition: var(--d) var(--ease);
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 1.5rem;
  min-width: 880px;
  padding: 1.8rem;
}
.nav-d > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dd-col { display: flex; flex-direction: column; gap: .2rem; }
.dd-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bleu-nuit);
  padding-bottom: .7rem;
  margin-bottom: .4rem;
  border-bottom: 1px solid var(--gris-tres-clair);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.dd-title svg { color: var(--or); }
.dd-col a {
  display: block;
  padding: .5rem .7rem;
  font-size: .85rem;
  color: var(--gris-fonce);
  border-radius: var(--r-s);
  transition: var(--d-fast);
}
.dd-col a:hover {
  background: var(--creme-2);
  color: var(--bleu-nuit);
  padding-left: 1.1rem;
}

/* Header droite : langue + téléphone */
.header-r {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-shrink: 0;
}

.lang {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gris-fonce);
  padding: .45rem .7rem;
  border-radius: var(--r-s);
  letter-spacing: .08em;
  cursor: pointer;
  transition: var(--d-fast);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.lang:hover { color: var(--bleu-nuit); }
.lang svg { width: 10px; height: 10px; opacity: .5; }

/* Téléphone */
.tel {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--bleu-nuit);
}
.tel-ic {
  width: 38px; height: 38px;
  border-radius: var(--r-circle);
  background: var(--bleu-nuit);
  color: var(--or-clair);
  display: grid;
  place-items: center;
  transition: var(--d-fast);
  flex-shrink: 0;
}
.tel:hover .tel-ic {
  background: var(--or);
  color: var(--bleu-nuit);
}
.tel-ic svg { width: 16px; height: 16px; }
.tel-num {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--bleu-nuit);
  letter-spacing: -.01em;
}

.burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-s);
  background: var(--bleu-nuit);
  color: var(--creme);
}
.burger svg { width: 20px; height: 20px; }

/* ============================================================================
   MOBILE NAV
   ============================================================================ */
.nav-m {
  position: fixed;
  inset: 0;
  background: var(--bleu-nuit);
  color: var(--creme);
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform var(--d-slow) var(--ease);
  z-index: 99;
  overflow-y: auto;
}
.nav-m.open { transform: translateX(0); }
.nav-m-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  border-radius: var(--r-circle);
  background: rgba(255,255,255,.08);
  color: var(--creme);
  display: grid;
  place-items: center;
}
.nav-m-list > li {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0;
}
.nav-m-list > li > a,
.nav-m-list > li > button {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--creme);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.nav-m-sub { padding-left: 1rem; margin-top: .5rem; max-height: 0; overflow: hidden; transition: max-height var(--d) ease; }
.nav-m-sub.open { max-height: 700px; }
.nav-m-sub li a { display: block; padding: .6rem 0; font-size: .95rem; color: rgba(247, 243, 236, .7); font-family: var(--ff-body); }
.nav-m-foot { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.nav-m-foot a { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; color: rgba(247, 243, 236, .85); font-size: .95rem; }
.nav-m-foot svg { color: var(--or); width: 18px; height: 18px; }

/* ============================================================================
   BOUTONS GLOBAUX
   ============================================================================ */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: var(--bleu-nuit);
  color: var(--creme);
  padding: 1.05rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: var(--d) var(--ease);
}
.btn-p:hover {
  background: var(--bleu-nuit-2);
  transform: translateY(-1px);
  box-shadow: var(--sh-m);
}
.btn-p.btn-or {
  background: var(--or);
  color: var(--bleu-nuit);
}
.btn-p.btn-or:hover { background: var(--or-fonce); color: var(--creme); }
.btn-p.btn-rouge {
  background: var(--rouge);
  color: #fff;
}
.btn-p.btn-rouge span[data-icon], .btn-p.btn-rouge svg { color: #fff; }
.btn-p.btn-rouge:hover { background: var(--rouge-2); }

.btn-s {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--bleu-nuit);
  font-weight: 500;
  font-size: .92rem;
  padding: 1rem 0;
  position: relative;
}
.btn-s::after {
  content: '';
  position: absolute;
  bottom: .6rem; left: 0; right: 0;
  height: 1px;
  background: var(--bleu-nuit);
  transform-origin: right;
  transition: transform var(--d) var(--ease);
}
.btn-s:hover::after { transform-origin: left; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: transparent;
  border: 1px solid var(--bleu-nuit);
  color: var(--bleu-nuit);
  padding: .95rem 1.7rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: .92rem;
  transition: var(--d) var(--ease);
}
.btn-outline:hover {
  background: var(--bleu-nuit);
  color: var(--creme);
}

/* ============================================================================
   SECTIONS
   ============================================================================ */
.section { padding: var(--section-py) 0; position: relative; }
.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--or-fonce);
  margin-bottom: 1.3rem;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--bleu-nuit);
  margin-bottom: 1.5rem;
  max-width: 740px;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--or-fonce);
}
.section-lead {
  font-size: 1.05rem;
  color: var(--gris-fonce);
  max-width: 660px;
  line-height: 1.7;
}
.section-head { margin-bottom: 4rem; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-title { margin-left: auto; margin-right: auto; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.section-dark {
  background: var(--bleu-nuit);
  color: var(--creme);
  position: relative;
  overflow: hidden;
}
.section-dark .section-title { color: var(--creme); }
.section-dark .section-title em { color: var(--or-clair); }
.section-dark .section-eyebrow { color: var(--or-clair); }
.section-dark .section-lead { color: rgba(247, 243, 236, .75); }

/* ============================================================================
   FOOTER (institutionnel)
   ============================================================================ */
.footer {
  background: var(--noir);
  color: rgba(247, 243, 236, .7);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { color: var(--creme); margin-bottom: 1.5rem; }
.footer-logo .logo-txt { color: var(--creme); }
.footer-logo .logo-txt small { color: var(--or-clair); }
.footer-desc {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 340px;
}
.footer-meta {
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(247, 243, 236, .55);
}
.footer-meta strong { color: var(--or-clair); font-weight: 600; }
.footer-meta a { color: var(--or-clair); text-decoration: underline; }
.footer h4 {
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--creme);
  margin-bottom: 1.2rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.footer-list li { margin-bottom: .65rem; }
.footer-list a {
  font-size: .86rem;
  color: rgba(247, 243, 236, .65);
  transition: color var(--d-fast);
}
.footer-list a:hover { color: var(--or-clair); }

.footer-contact { display: flex; flex-direction: column; gap: .8rem; font-size: .86rem; }
.footer-contact a {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: rgba(247, 243, 236, .7);
  line-height: 1.5;
}
.footer-contact a:hover { color: var(--or-clair); }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--or); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .78rem;
  color: rgba(247, 243, 236, .4);
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: rgba(247, 243, 236, .45); }
.footer-legal a:hover { color: var(--or-clair); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (min-width: 1025px) {
  /* Le menu mobile ne doit JAMAIS apparaître en desktop (corrige le menu bloqué) */
  .nav-m { display: none !important; }
}
@media (max-width: 980px) {
  .nav-d { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  /* En tablette/mobile : on garde calculateur + téléphone visibles côte à côte */
  .header-cta { padding: .5rem .8rem; font-size: .76rem; }
  .header-cta span:last-child { display: inline; }
}
@media (max-width: 768px) {
  /* Calculateur compact (icône + "Prime") à côté du téléphone */
  .header-cta { padding: .55rem .7rem; }
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
  .header-r { gap: .6rem; }
}
@media (max-width: 640px) {
  .header-in { padding: .8rem 0; gap: .6rem; }
  .logo-txt { font-size: 1.1rem; }
  .logo-txt small { font-size: .5rem; letter-spacing: .15em; }
  .logo-svg { width: 36px; height: 36px; }
  .tel-num { display: none; }
  .lang { display: none; }
  .header-cta { padding: .5rem .65rem; font-size: .72rem; }
  .tel-ic { width: 40px; height: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
/* Libellés courts/longs du CTA header */
.header-cta .cta-short { display: none; }

/* ============================================================================
   FOOTER ENRICHI : map + paiement (v4)
   ============================================================================ */
.reassure-band-glued { margin-bottom: 0; border-bottom: none; }

.footer-extra {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  padding: 2.5rem 0;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-map-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-map-head span[data-icon] { color: var(--or); }
.footer-map-head strong { display: block; color: var(--creme); font-family: var(--ff-display); font-size: 1rem; }
.footer-map-head span:not([data-icon]) { font-size: .82rem; color: rgba(247,243,236,.6); }
.footer-map-canvas {
  display: flex;
  align-items: center;
  gap: .8rem;
  height: 120px;
  border-radius: var(--r);
  background:
    linear-gradient(135deg, var(--bleu-nuit-2) 0%, var(--bleu-nuit-3) 100%);
  position: relative;
  overflow: hidden;
  padding: 0 1.4rem;
}
.footer-map-canvas::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(180,143,93,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,143,93,.10) 1px, transparent 1px);
  background-size: 24px 24px;
}
.footer-map-pin {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--or); color: var(--bleu-nuit);
  display: grid; place-items: center; z-index: 1; flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(180,143,93,.18);
}
.footer-map-link { color: var(--or-clair); font-size: .88rem; font-weight: 500; z-index: 1; }
.footer-map-canvas:hover .footer-map-link { color: var(--creme); }

.footer-pay h4 { font-family: var(--ff-display); font-size: 1rem; color: var(--creme); margin-bottom: .6rem; }
.footer-pay-desc { font-size: .82rem; color: rgba(247,243,236,.6); line-height: 1.6; margin-bottom: 1rem; max-width: 460px; }
.pay-marks { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: 1rem; }
.pay-mark { display: inline-flex; align-items: center; justify-content: center; }
.pay-mark svg { width: 48px; height: 32px; border-radius: 4px; display: block; }
.footer-pay-note { display: flex; align-items: center; gap: .5rem; font-size: .72rem; color: rgba(247,243,236,.45); line-height: 1.4; }
.footer-pay-note span[data-icon] { color: var(--or); flex-shrink: 0; }

@media (max-width: 768px) {
  .footer-extra { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================================
   CALC BAR : hint + suggestions NPA dans la barre (v4)
   ============================================================================ */
.calc-hint { display: block; font-size: .68rem; color: var(--gris); margin-top: .35rem; }
.calc-field-npa .npa-suggestions { top: calc(100% + 4px); }

/* ===== Menu mobile enrichi (v4.2) ===== */
.nav-m-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  background: var(--rouge);
  color: var(--creme);
  padding: 1rem;
  border-radius: var(--r-s);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.nav-m-cta span[data-icon] { color: var(--creme); }
.nav-m-sub-grp {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or-clair);
  padding: .8rem 0 .3rem;
}
.nav-m-tel {
  font-family: var(--ff-display);
  font-size: 1.25rem !important;
  font-weight: 600;
  color: var(--or-clair) !important;
}
