/* ─── COMMUN À TOUTES LES PAGES ─────────────────────────
   Couleurs, remise à zéro, bandeau, navigation et bas de page. */

:root {
  --accent:       #0F2747;
  --accent-hover: #163961;
  --secondary:    #E86F2E;
  --bg:           #FFFFFF;
  --text:         #111111;
  --muted:        #5F6770;
  --border:       #D9E0E8;
  --soft:         #F5F8FC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Mots mis en gras dans les textes */
strong { font-weight: 600; color: var(--accent); }

/* ─── BANDEAU ────────────────────────────────────────── */
header {
  position: relative;
  z-index: 100;
  background: #FFF0E0;
  border-bottom: 3px solid var(--secondary);
  padding: 2rem 4rem 1.6rem;
  text-align: center;
}

.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
}

.logo-mark {
  height: 190px;
  width: auto;
  display: block;
  transition: height 0.35s ease;
}

.logo {
  font-family: 'Copperplate', 'Copperplate Gothic Light', 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #000000;
  text-transform: uppercase;
  line-height: 1;
  display: inline-block;
}

/* ─── NAVIGATION ─────────────────────────────────────── */
nav { margin-top: 1.4rem; }

nav a {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  margin: 0 1.3rem;
  font-weight: 700;
  transition: color 0.25s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: center;
}

nav a:hover { color: var(--accent); }
nav a:hover::after { transform: scaleX(1); }

nav a.urgence-link { color: var(--accent); font-weight: 800; font-variant-numeric: lining-nums; }

/* Rubrique avec sous-menu, ouvert au survol ou au clavier */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
/* Zone invisible entre le lien et le sous-menu pour ne pas le perdre au survol */
.nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.9rem;
}

.submenu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 0;
  min-width: 280px;
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15, 39, 71, 0.08);
  padding: 0.35rem 0;
  z-index: 120;
}
.nav-item:hover .submenu,
.nav-item:focus-within .submenu { display: flex; }

.submenu a {
  margin: 0;
  padding: 0.85rem 1rem;
  display: block;
}
.submenu a::after { display: none; }

/* ─── HAMBURGER ──────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── BAS DE PAGE ────────────────────────────────────── */
footer { background: var(--text); border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom {
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom-text, .footer-legal-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; }
.footer-bottom-text span, .footer-legal-links a {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
}
.footer-legal-links a { transition: color 0.2s; }
.footer-legal-links a:hover { color: #ffffff; }

/* ─── RESPONSIVE — BANDEAU (≤ 900px) ─────────────────── */
@media (max-width: 900px) {
  header { padding: 1.1rem 1.5rem; }
  .logo-lockup { gap: 0.9rem; }
  .logo-mark { height: 84px; }
  .logo { font-size: 0.56rem; letter-spacing: 0.12em; }
  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: fixed;
    inset: 0;
    overflow-y: auto;
    background: rgb(249,248,246);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 105;
  }
  nav.open { display: flex; }
  nav a {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    margin: 0;
    display: block;
  }
  .nav-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav-item .submenu {
    position: static;
    display: flex;
    min-width: 0;
    width: 100%;
    max-width: 340px;
    margin-top: 0.8rem;
    box-shadow: none;
    background: transparent;
    border: none;
  }
  .nav-item .submenu a {
    padding: 0.4rem 0;
    text-align: center;
    font-size: 0.68rem;
  }
}

@media (max-width: 700px) {
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-text, .footer-legal-links { justify-content: center; }
}

@media (max-width: 540px) {
  header { padding: 0.9rem 1.2rem; }
  .logo-mark { height: 72px; }
  .logo { font-size: 0.5rem; letter-spacing: 0.1em; }
}
