/* =========================================================
   Nouvelle École — système éditorial (design 2026)
   En-tête, menus, pied de page et composants partagés.
   Repris du design de mai 2026 (home-dev), adapté :
   polices du système, menu mobile complet, barre d'actions mobile,
   barre de section, fil d'Ariane, accessibilité.
   ========================================================= */

/* ---------------------------------------------------------
   COULEURS ET POLICES DU SITE : tout se règle ici.
   Changer une valeur change la couleur partout (en-tête, boutons, pied de page…).
   --------------------------------------------------------- */
:root {
  /* Couleurs principales */
  --ne-navy:   #083d77;   /* bleu marine : en-tête, titres, pied de page */
  --ne-navy-2: #0a4d8c;
  --ne-blue:   #0055A4;   /* bleu du drapeau */
  --ne-red:    #EF4135;   /* rouge du drapeau : boutons d'action, accents */
  --ne-gold:   #ffd700;   /* or : survols sur fond marine */

  /* Fonds et textes */
  --ne-cream:  #fffaf0;   /* fond de l'en-tête et des sections claires */
  --ne-paper:  #fbf6ea;
  --ne-ink:    #2b2b2b;
  --ne-text:   #4a4a4a;
  --ne-muted:  #8a8480;
  --ne-rule:   rgba(8, 61, 119, 0.16);
  --ne-rule-2: rgba(8, 61, 119, 0.08);

  /* Polices : japonais = polices installées sur l'appareil (rapide) ; latin italique = Cormorant Garamond */
  --ne-serif:  'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, serif;
  --ne-script: 'Cormorant Garamond', Georgia, 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --ne-sans:   'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, system-ui, sans-serif;

  /* Rythme */
  --ne-sp-section: 72px;
  --ne-sp-section-tight: 48px;
  --ne-container: 1180px;
  --ne-header-h: 64px;
}

/* L'en-tête reste collé en haut : les ancres (#…) s'arrêtent juste en dessous */
html { scroll-padding-top: calc(var(--ne-header-h) + 16px); }

/* Contour visible pour la navigation au clavier */
.ne-header a:focus-visible, .ne-header button:focus-visible, .ne-header [tabindex]:focus-visible,
.ne-drawer a:focus-visible, .ne-drawer button:focus-visible,
.ne-footer a:focus-visible, .ne-footer button:focus-visible,
.ne-subnav a:focus-visible, .ne-mobilebar a:focus-visible {
  outline: 2px solid var(--ne-red); outline-offset: 2px;
}

/* Lien d'évitement (clavier / lecteurs d'écran) */
.ne-skip {
  position: absolute; left: -9999px; top: 8px; z-index: 3000;
  background: var(--ne-navy); color: #fff; padding: 8px 14px; font-family: var(--ne-sans); font-size: 13px;
}
.ne-skip:focus { left: 8px; color: #fff; }

/* ===== Marqueurs de section ===== */
.ne-eyebrow { font-family: var(--ne-script); font-style: italic; font-size: 17px; color: var(--ne-navy); letter-spacing: 0.04em; }
.ne-kicker {
  display: inline-block; font-family: var(--ne-sans); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ne-red); font-weight: 700;
}

/* ===== Titres ===== */
.ne-h1 { font-family: var(--ne-serif); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.18; color: var(--ne-navy); font-weight: 600; margin: 0; }
.ne-h2 { font-family: var(--ne-serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.22; color: var(--ne-navy); font-weight: 600; margin: 0; }
.ne-h3 { font-family: var(--ne-serif); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.3; color: var(--ne-navy); font-weight: 600; margin: 0; }
.ne-h4 { font-family: var(--ne-serif); font-size: 15px; letter-spacing: 0.02em; color: var(--ne-navy); font-weight: 600; margin: 0; }
.ne-h2 em, .ne-h1 em { font-style: normal; color: var(--ne-red); }
.ne-h2 u, .ne-h1 u { text-decoration: none; border-bottom: 3px solid var(--ne-red); padding-bottom: 2px; }
.ne-lead { font-size: 15px; line-height: 1.75; color: var(--ne-text); max-width: 60ch; margin: 0; }

/* ===== Conteneur ===== */
.ne-container { max-width: var(--ne-container); margin: 0 auto; padding: 0 32px; box-sizing: border-box; }

/* ===== Boutons ===== */
.ne-btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--ne-sans);
  font-size: 13px; font-weight: 600; padding: 12px 22px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; letter-spacing: 0.04em;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.ne-btn:hover { transform: translateX(2px); box-shadow: 0 4px 14px rgba(8,61,119,0.14); text-decoration: none; }
.ne-btn--solid { background: var(--ne-navy); color: #fff; }
.ne-btn--solid:hover { color: #fff; }
.ne-btn--red { background: var(--ne-red); color: #fff; }
.ne-btn--red:hover { color: #fff; }
.ne-btn--ghost { background: transparent; color: var(--ne-navy); border-color: var(--ne-navy); }
.ne-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.ne-btn--ghost-light:hover { color: #fff; }
.ne-link {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--ne-sans); font-size: 13px; font-weight: 600;
  color: var(--ne-navy); border-bottom: 1px solid var(--ne-rule); padding: 4px 0; letter-spacing: 0.04em; text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}
.ne-link:hover { color: var(--ne-red); border-bottom-color: var(--ne-red); text-decoration: none; }

/* ===== Badges ===== */
.ne-badge {
  display: inline-block; font-family: var(--ne-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  color: #fff; background: var(--ne-navy); padding: 5px 10px; border-radius: 1px; text-transform: uppercase;
}
.ne-badge--red { background: var(--ne-red); }
.ne-badge--gold { background: var(--ne-gold); color: var(--ne-navy); }
.ne-badge--ghost { background: transparent; color: var(--ne-navy); border: 1px solid var(--ne-navy); }

/* ===== Filet tricolore ===== */
.ne-tricolor { display: inline-flex; height: 3px; width: 64px; }
.ne-tricolor span { flex: 1; }
.ne-tricolor span:nth-child(1) { background: var(--ne-blue); }
.ne-tricolor span:nth-child(2) { background: #fff; box-shadow: inset 0 0 0 1px var(--ne-rule); }
.ne-tricolor span:nth-child(3) { background: var(--ne-red); }

/* ===== Sections et cartes ===== */
.ne-section { padding: var(--ne-sp-section) 0; }
.ne-section--tight { padding: var(--ne-sp-section-tight) 0; }
.ne-section--cream { background: var(--ne-cream); }
.ne-section--paper { background: var(--ne-paper); }
.ne-section--white { background: #fff; }
.ne-section--navy { background: var(--ne-navy); color: rgba(255,255,255,0.86); }
.ne-section--navy .ne-h1, .ne-section--navy .ne-h2, .ne-section--navy .ne-h3 { color: #fff; }
.ne-section--navy .ne-h2 em, .ne-section--navy .ne-h1 em { color: var(--ne-gold); }
.ne-section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.ne-section-head--center { align-items: center; text-align: center; }
.ne-card {
  background: #fff; border: 1px solid var(--ne-rule); padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color 200ms ease, transform 200ms ease; box-sizing: border-box;
}
.ne-card:hover { border-color: var(--ne-navy); transform: translateY(-2px); }
.ne-list { list-style: none; padding: 0; margin: 0; }
.ne-list li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--ne-rule); font-size: 14px; color: var(--ne-text); }
.ne-list li:last-child { border-bottom: 1px solid var(--ne-rule); }
.ne-list li::before { content: ''; position: absolute; left: 0; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--ne-red); }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.ne-header {
  position: sticky; top: 0; z-index: 999;
  background: var(--ne-cream); border-bottom: 1px solid var(--ne-rule);
  font-family: var(--ne-sans);
}
.ne-header a:hover { text-decoration: none; }

/* Bandeau du haut (ordinateur) : téléphone, e-mail, horaires, accès, contact */
.ne-header__top { display: none; background: var(--ne-navy); padding: 8px 0; }
@media (min-width: 900px) { .ne-header__top { display: block; } }
.ne-header__top-inner {
  max-width: var(--ne-container); margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.ne-header__top a, .ne-header__top span { color: rgba(255,255,255,0.75); font-size: 13px; letter-spacing: 0.03em; text-decoration: none; }
.ne-header__top a:hover { color: #fff; }
.ne-header__top-left, .ne-header__top-right { display: flex; align-items: center; gap: 22px; }

/* Barre principale */
.ne-header__bar {
  max-width: var(--ne-container); margin: 0 auto; padding: 0 32px;
  height: var(--ne-header-h); display: flex; align-items: center;
}
@media (max-width: 899px) { .ne-header__bar { padding: 0 12px 0 16px; } }
.ne-header__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; gap: 10px; }
.ne-header__logo svg { display: block; }

/* Menus (ordinateur) */
.ne-header__nav { display: none; align-items: stretch; margin-left: 28px; }
@media (min-width: 900px) { .ne-header__nav { display: flex; } }
.ne-header__nav-item {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  height: var(--ne-header-h); padding: 0 18px; gap: 3px;
  color: var(--ne-navy); text-decoration: none; white-space: nowrap; cursor: pointer;
  border-bottom: 2px solid transparent; transition: color 150ms, border-color 150ms;
  background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit;
}
.ne-header__nav-item:hover, .ne-header__nav-item.is-active { color: var(--ne-red); border-bottom-color: var(--ne-red); }
.ne-header__nav-jp { font-size: 14px; font-weight: 700; color: inherit; letter-spacing: 0.04em; }
.ne-header__nav-fr { font-family: var(--ne-script); font-style: italic; font-size: 11px; color: var(--ne-muted); letter-spacing: 0.1em; }
.ne-header__nav-item:hover .ne-header__nav-fr, .ne-header__nav-item.is-active .ne-header__nav-fr { color: var(--ne-red); opacity: 0.75; }

.ne-header__dropdown-wrap { position: relative; }
.ne-header__dropdown {
  display: none; position: absolute; top: 100%; left: -8px; min-width: 240px; background: #fff;
  border: 1px solid var(--ne-rule); border-top: 2px solid var(--ne-red);
  box-shadow: 0 8px 28px rgba(8,61,119,0.11); z-index: 200; padding: 6px 0;
}
.ne-header__dropdown-wrap:hover .ne-header__dropdown,
.ne-header__dropdown-wrap:focus-within .ne-header__dropdown { display: block; }
.ne-header__dropdown a {
  display: block; padding: 9px 18px; font-size: 13px; color: var(--ne-text);
  text-decoration: none; letter-spacing: 0.02em; transition: background 100ms, color 100ms;
}
.ne-header__dropdown a:hover { background: var(--ne-cream); color: var(--ne-navy); }
.ne-header__dropdown a.is-active { color: var(--ne-red); font-weight: 700; }
.ne-header__dropdown a.is-cta { color: var(--ne-red); font-weight: 700; }
.ne-header__dropdown hr { border: none; border-top: 1px solid var(--ne-rule-2); margin: 4px 0; }

/* Bouton d'action et langues (ordinateur) */
.ne-header__actions { display: none; align-items: center; gap: 4px; margin-left: auto; }
@media (min-width: 900px) { .ne-header__actions { display: flex; } }
.ne-header__cta { font-size: 12px; padding: 10px 16px; letter-spacing: 0.06em; }
.ne-header__lang {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin-left: 12px;
}
.ne-header__lang a { color: var(--ne-muted); text-decoration: none; transition: color 150ms; }
.ne-header__lang a:hover { color: var(--ne-navy); }
.ne-header__lang .sep { color: var(--ne-rule); }
.ne-header__lang .active { color: var(--ne-navy); }

/* Bouton du menu mobile */
.ne-burger {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
  min-width: 48px; height: 48px; flex-shrink: 0; color: var(--ne-navy); font-family: inherit;
}
@media (min-width: 900px) { .ne-burger { display: none; } }
.ne-burger__line { display: block; width: 22px; height: 2px; background: var(--ne-navy); }
.ne-burger__label { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; margin-top: 1px; }

/* ===== Barre de section (pages intérieures, ordinateur) ===== */
.ne-subnav { display: none; background: #fff; border-bottom: 1px solid var(--ne-rule); }
@media (min-width: 900px) { .ne-subnav { display: block; } }
.ne-subnav ul {
  max-width: var(--ne-container); margin: 0 auto; padding: 0 32px; list-style: none;
  display: flex; flex-wrap: wrap;
}
.ne-subnav li { flex: 1 1 0; border-left: 1px solid var(--ne-rule-2); }
.ne-subnav li:last-child { border-right: 1px solid var(--ne-rule-2); }
.ne-subnav a, .ne-subnav span {
  display: block; padding: 13px 10px; text-align: center; font-family: var(--ne-sans);
  font-size: 13px; font-weight: 700; color: var(--ne-navy); text-decoration: none; letter-spacing: 0.03em;
  border-bottom: 2px solid transparent; transition: color 150ms, border-color 150ms, background 150ms;
}
.ne-subnav a:hover { color: var(--ne-red); background: var(--ne-cream); text-decoration: none; }
.ne-subnav .is-active { color: var(--ne-red); border-bottom-color: var(--ne-red); background: var(--ne-cream); }

/* ===== Fil d'Ariane ===== */
.ne-crumb { background: var(--ne-cream); border-bottom: 1px solid var(--ne-rule-2); }
.ne-crumb ol {
  max-width: var(--ne-container); margin: 0 auto; padding: 10px 32px; list-style: none;
  display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--ne-sans); font-size: 12px; color: var(--ne-muted);
}
@media (max-width: 899px) { .ne-crumb ol { padding: 8px 16px; } }
.ne-crumb li + li::before { content: '›'; margin: 0 10px; color: var(--ne-muted); }
.ne-crumb a { color: var(--ne-muted); text-decoration: none; }
.ne-crumb a:hover { color: var(--ne-navy); text-decoration: none; }
.ne-crumb [aria-current] { color: var(--ne-navy); }

/* =========================================================
   MENU MOBILE (tiroir)
   ========================================================= */
.ne-drawer {
  position: fixed; top: 0; right: 0; width: 88vw; max-width: 380px; height: 100vh; height: 100dvh;
  background: var(--ne-navy); z-index: 2001; transform: translateX(100%); visibility: hidden;
  transition: transform 320ms cubic-bezier(.4,0,.2,1), visibility 320ms;
  display: flex; flex-direction: column; overflow-y: auto; font-family: var(--ne-sans);
}
.ne-drawer.is-open { transform: translateX(0); visibility: visible; }
.ne-drawer__overlay {
  position: fixed; inset: 0; background: rgba(8,61,119,0.45); z-index: 2000;
  opacity: 0; pointer-events: none; transition: opacity 300ms;
}
.ne-drawer__overlay.is-open { opacity: 1; pointer-events: auto; }
.ne-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px 22px; }
.ne-drawer__stripe { display: flex; height: 3px; width: 48px; }
.ne-drawer__stripe span { flex: 1; }
.ne-drawer__stripe span:nth-child(1) { background: var(--ne-blue); }
.ne-drawer__stripe span:nth-child(2) { background: #fff; }
.ne-drawer__stripe span:nth-child(3) { background: var(--ne-red); }
.ne-drawer__close {
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.7);
  font-size: 24px; line-height: 1; min-width: 48px; min-height: 48px;
}
.ne-drawer__close:hover { color: #fff; }
.ne-drawer__cta {
  display: block; margin: 4px 22px 14px; padding: 14px; text-align: center; background: var(--ne-red); color: #fff;
  border-radius: 2px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none;
}
.ne-drawer__cta:hover { color: #fff; opacity: 0.9; text-decoration: none; }
.ne-drawer__group { border-top: 1px solid rgba(255,255,255,0.1); padding: 6px 0 10px; }
.ne-drawer__label {
  display: flex; justify-content: space-between; align-items: baseline; padding: 12px 22px 6px;
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0.04em;
}
.ne-drawer__label small { font-family: var(--ne-script); font-style: italic; font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.45); }
.ne-drawer__group a {
  display: block; padding: 9px 22px 9px 34px; font-size: 14px; color: rgba(255,255,255,0.82); text-decoration: none;
}
.ne-drawer__group a:hover, .ne-drawer__group a.is-active { color: var(--ne-gold); text-decoration: none; }
.ne-drawer__foot {
  margin-top: auto; padding: 16px 22px 28px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6);
}
.ne-drawer__foot a { color: rgba(255,255,255,0.8); text-decoration: none; }
.ne-drawer__foot a:hover { color: #fff; }
.ne-drawer__lang { display: flex; gap: 14px; margin-top: 6px; font-weight: 700; letter-spacing: 0.14em; font-size: 12px; }
.ne-drawer__lang .active { color: #fff; }

/* =========================================================
   BARRE D'ACTIONS (mobile, fixée en bas de l'écran)
   ========================================================= */
.ne-mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; background: var(--ne-navy);
  box-shadow: 0 -2px 12px rgba(8,61,119,0.18); font-family: var(--ne-sans);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 900px) { .ne-mobilebar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); } }
.ne-mobilebar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 58px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.ne-mobilebar a:hover { color: #fff; text-decoration: none; }
.ne-mobilebar i { font-size: 18px; }
.ne-mobilebar .is-cta { background: var(--ne-red); }

/* Bouton « 上へ » (géré par functions.js) : remonté au-dessus de la barre d'actions mobile */
@media (max-width: 899px) { .back-top { bottom: 74px !important; } }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.ne-footer { background: var(--ne-navy); color: rgba(255,255,255,0.78); padding: 60px 0 28px; font-family: var(--ne-sans); }
.ne-footer a { color: rgba(255,255,255,0.8); display: inline-block; padding: 4px 0; font-size: 13px; text-decoration: none; }
.ne-footer a:hover { color: var(--ne-gold); text-decoration: none; }
.ne-footer a.is-active { color: var(--ne-gold); }
.ne-footer ul { list-style: none; padding: 0; margin: 0; }
.ne-footer .ne-container {
  display: grid; grid-template-columns: 1.4fr 1.5fr 1.1fr 1.2fr; gap: 0 44px; align-items: flex-start;
}
.ne-footer__brand { grid-column: 1; grid-row: 1; }
.ne-footer__brand-link { display: inline-flex !important; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.ne-footer__brand-name { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: #fff; line-height: 1.3; text-transform: uppercase; }
.ne-footer__brand-jp { font-size: 13px; font-style: italic; color: rgba(255,255,255,0.6); line-height: 1.3; }
.ne-footer__tel { font-size: 17px !important; font-weight: 600; letter-spacing: 0.02em; }
.ne-footer__info { color: rgba(255,255,255,0.6); font-size: 12px; line-height: 1.8; padding-top: 6px; }
.ne-footer__col { grid-row: 1; }
.ne-footer__col-head {
  background: transparent; border: 0; padding: 0; cursor: default; text-align: left; color: #fff;
  display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 14px;
  font-family: inherit; font-size: 14px; font-weight: 700;
}
.ne-footer__col-head + ul + .ne-footer__col-head { margin-top: 24px; }
.ne-footer__col-fr { font-family: var(--ne-script); font-style: italic; font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.55); margin-left: 6px; letter-spacing: 0.02em; }
.ne-footer__chev { display: none; font-size: 22px; color: rgba(255,255,255,0.55); line-height: 1; }
.ne-footer__rule { grid-column: 1 / -1; height: 1px; background: rgba(255,255,255,0.14); margin: 32px 0 0; border: 0; }
.ne-footer__bottom {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.55); padding-top: 16px; flex-wrap: wrap; gap: 16px;
}

@media (max-width: 900px) {
  :root { --ne-sp-section: 56px; --ne-sp-section-tight: 40px; }
  .ne-container { padding: 0 20px; }
  .ne-footer .ne-container { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .ne-footer__brand { grid-column: 1 / -1; }
  .ne-footer__col { grid-row: auto; }
}
@media (max-width: 600px) {
  .ne-footer .ne-container { grid-template-columns: 1fr; gap: 0; }
  .ne-footer__brand { padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.14); margin-bottom: 8px; }
  .ne-footer__col { border-bottom: 1px solid rgba(255,255,255,0.14); }
  .ne-footer__col-head { padding: 16px 0; margin-bottom: 0; cursor: pointer; }
  .ne-footer__col-head + ul + .ne-footer__col-head { margin-top: 0; border-top: 1px solid rgba(255,255,255,0.14); }
  .ne-footer__chev { display: inline-block; }
  .ne-footer__col ul { max-height: 0; overflow: hidden; transition: max-height 240ms ease, padding 240ms ease; }
  .ne-footer__col ul.is-open { max-height: 600px; padding-bottom: 14px; }
  .ne-footer__col ul a { padding: 8px 0; }
  .ne-footer__bottom { flex-direction: column; gap: 8px; text-align: center; padding-top: 20px; }
  .ne-footer { padding: 44px 0 24px; }
}
