/* ==========================================================================
   Hanano Sushi - feuille de style
   Charte : indigo japonais (ai-zome), blanc de riz, corail du poisson.
   Titres Spectral, texte Karla, polices hebergees (aucun appel Google Fonts).
   ========================================================================== */

/* --- Polices ------------------------------------------------------------ */
@font-face {
  font-family: 'Spectral';
  src: url('polices/spectral-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('polices/spectral-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('polices/spectral-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('polices/karla-var.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* --- Variables ---------------------------------------------------------- */
:root {
  /* Couleurs relevees sur la carte et le logo du restaurant */
  --nuit:    #2E3F5C;   /* bleu ardoise fonce, encre des titres */
  --indigo:  #45577A;   /* bleu du logo */
  --indigo-clair: #8C9AB3;
  --riz:     #FAF6F3;   /* papier de la carte */
  --papier:  #FFFFFF;
  --corail:  #EE9611;   /* orange du logo, pour les aplats */
  --corail-fonce: #D07F06;
  --ambre-texte: #8A5600;  /* orange fonce, pour le TEXTE : contraste AA */
  --gris:    #666E7D;   /* contraste AA sur fond clair */
  --trait:   #E3DDD6;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --largeur: 1080px;
  --gouttiere: 24px;
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--riz);
  color: var(--nuit);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--corail); }

:focus-visible {
  outline: 2px solid var(--corail);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.saut-contenu {
  position: absolute; left: -9999px;
  background: var(--corail); color: #fff; padding: .8em 1.2em; z-index: 100;
}
.saut-contenu:focus { left: 12px; top: 12px; }

/* --- En-tete ------------------------------------------------------------ */
.entete {
  background: var(--papier);
  color: var(--nuit);
  position: relative;
}
.entete a { color: var(--nuit); }

.entete-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding-block: 14px;
}

.marque {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.marque { order: 1; }
.marque img { height: 54px; width: auto; }
.nav { order: 2; margin-left: auto; }
.nav-tel { order: 3; }
.bascule-etiquette { order: 4; }

.nav-liste {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: .96rem;
}
.nav-liste a {
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  color: var(--indigo);
}
.nav-liste a:hover { color: var(--nuit); border-bottom-color: var(--corail); }
.nav-liste .actif a { color: var(--nuit); border-bottom-color: var(--corail); }

.nav-tel {
  font-family: var(--serif);
  font-size: 1.05rem;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--trait);
  padding: 8px 16px;
  background: var(--riz);
}
.nav-tel:hover { background: var(--corail); border-color: var(--corail); color: #33240A; }
.tel-court { display: none; }

/* Bouton burger (mobile) */
.bascule { display: none; }
.bascule-etiquette {
  display: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}
.bascule-etiquette span,
.bascule-etiquette span::before,
.bascule-etiquette span::after {
  display: block;
  width: 26px; height: 2px;
  background: var(--nuit);
  content: '';
}
.bascule-etiquette span::before { transform: translateY(-8px); }
.bascule-etiquette span::after  { transform: translateY(6px); }

/* --- Noren : le rideau de l'entree -------------------------------------- */
.noren {
  display: flex;
  height: 30px;
  background: var(--riz);
}
.noren i {
  flex: 1 1 auto;
  background: linear-gradient(to bottom, var(--indigo), var(--nuit));
  margin-right: 6px;
  transform-origin: top center;
}
.noren i:last-child { margin-right: 0; }

@media (prefers-reduced-motion: no-preference) {
  .js .noren i {
    animation: noren-descend .5s cubic-bezier(.2,.7,.3,1) backwards;
  }
  .js .noren i:nth-child(1) { animation-delay: .02s }
  .js .noren i:nth-child(2) { animation-delay: .06s }
  .js .noren i:nth-child(3) { animation-delay: .10s }
  .js .noren i:nth-child(4) { animation-delay: .14s }
  .js .noren i:nth-child(5) { animation-delay: .18s }
  .js .noren i:nth-child(6) { animation-delay: .22s }
  .js .noren i:nth-child(7) { animation-delay: .26s }
  .js .noren i:nth-child(8) { animation-delay: .30s }
  .js .noren i:nth-child(9) { animation-delay: .34s }
}
@keyframes noren-descend {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* --- Boutons ------------------------------------------------------------ */
.bouton {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.bouton-plein {
  background: var(--corail);
  color: #33240A;
}
.bouton-plein:hover { background: var(--corail-fonce); color: #33240A; }

.bouton-trait {
  background: transparent;
  color: var(--nuit);
  border-color: var(--nuit);
}
.bouton-trait:hover { background: var(--nuit); color: var(--papier); }

.pied .bouton-trait {
  color: var(--papier); border-color: rgba(255,255,255,.4);
}
.pied .bouton-trait:hover {
  background: var(--papier); color: var(--nuit);
}

/* --- Heros -------------------------------------------------------------- */
.heros {
  padding-block: clamp(48px, 8vw, 88px) clamp(40px, 6vw, 72px);
}
.heros h1 { margin-bottom: .3em; }
.heros-intro {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  max-width: 46ch;
  color: #333B49;
}
.heros-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 30px;
}

/* Note Google, presentee sobrement */
.note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 26px;
  font-size: .95rem;
  color: var(--gris);
}
.note-chiffre {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--nuit);
}
.note-etoiles { color: #E5A130; letter-spacing: .12em; }

/* --- Sections ----------------------------------------------------------- */
.section { padding-block: clamp(44px, 6vw, 76px); }
.section-sombre { background: var(--nuit); color: var(--papier); }
.section-sombre h2, .section-sombre h3 { color: var(--papier); }
.section-sombre a { color: #C7D3E3; }
.section-sombre p { color: #C9D0DA; }
.section-papier { background: var(--papier); }

.section-titre {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 34px;
}
.section-titre h2 { margin: 0; }
.section-titre::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--trait);
}
.section-sombre .section-titre::after { background: rgba(255,255,255,.2); }

/* --- Trois volets ------------------------------------------------------- */
.volets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 34px;
}
.volet h3 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--corail);
  display: inline-block;
}
.volet p { margin-bottom: 0; }

/* --- Emplacement photo (motif seigaiha en attendant) -------------------- */
.photo-a-venir {
  aspect-ratio: 4 / 3;
  background-color: #E4E7E4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%2327405E' stroke-opacity='.22' stroke-width='1.4'%3E%3Cpath d='M0 40a40 40 0 0180 0M0 40a30 30 0 0160 0M0 40a20 20 0 0140 0M0 40a10 10 0 0120 0'/%3E%3Cpath d='M40 40a40 40 0 0180 0M40 40a30 30 0 0160 0M40 40a20 20 0 0140 0M40 40a10 10 0 0120 0'/%3E%3Cpath d='M-40 40a40 40 0 0180 0M-40 40a30 30 0 0160 0M-40 40a20 20 0 0140 0M-40 40a10 10 0 0120 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 40px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.photo-a-venir span {
  background: rgba(22,35,58,.86);
  color: #fff;
  font-size: .78rem;
  padding: 5px 10px;
  border-radius: 2px;
}

/* --- Photos ------------------------------------------------------------- */
.photo { margin: 0; }
.photo img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.duo .photo img { max-height: 520px; object-fit: cover; }
.photo-facade { margin-bottom: 24px; }
.photo-facade img { border-radius: 2px; }

/* --- Grille accueil : texte + photo ------------------------------------- */
.duo {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.duo-inverse { grid-template-columns: 1fr 1.15fr; }
@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
  .duo-inverse > .photo { order: 2; }
}

/* --- Les sushi ---------------------------------------------------------- */
.sushi-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.sushi-groupe h3 {
  margin-bottom: .5em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--corail);
}
.sushi-note {
  margin-top: 10px;
  font-size: .86rem;
  font-style: italic;
  color: var(--gris);
}
.opt-cheese {
  display: inline-block;
  margin-left: 7px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ambre-texte);
  background: #FDF3E0;
  border: 1px solid #EBD4A8;
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
}
.formules-deux { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* --- Sommaire d'une page longue ----------------------------------------- */
.sommaire {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.sommaire a {
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
  color: var(--nuit);
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 2px;
  padding: 8px 15px;
  transition: border-color .16s ease, color .16s ease;
}
.sommaire a:hover { border-color: var(--corail); color: var(--ambre-texte); }

/* Le sommaire est colle en haut : degager l'ancre sous l'en-tete */
[id] { scroll-margin-top: 24px; }

/* --- Formules midi ------------------------------------------------------ */
.heros-court { padding-block: clamp(40px, 6vw, 64px) clamp(24px, 3vw, 36px); }

.accomp {
  list-style: none;
  margin: 0 0 clamp(40px, 6vw, 60px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2px;
  background: var(--trait);
  border: 1px solid var(--trait);
}
.accomp li {
  background: var(--papier);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.accomp-nom { font-weight: 600; }
.accomp-sup { font-family: var(--serif); color: var(--ambre-texte); }
.accomp-inclus { color: var(--gris); font-style: italic; }
.accomp-sup { font-size: .88rem; }
.accomp-carte {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2px;
}
.etoile { color: var(--ambre-texte); }

.formules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(22px, 3vw, 32px);
}
.formule {
  background: var(--riz);
  border-top: 3px solid var(--corail);
  padding: 24px 26px 26px;
}
.formule-tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.formule-tete h3 {
  margin: 0;
  font-size: 1.5rem;
}
.formule-prix {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}
.formule-contenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.formule-contenu li {
  padding: 5px 0 5px 16px;
  position: relative;
  border-bottom: 1px solid var(--trait);
}
.formule-contenu li:last-child { border-bottom: 0; }
.formule-contenu li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--corail);
}
.formule-variantes {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gris);
  font-size: .96rem;
}
.note-dispo {
  margin-top: 30px;
  font-size: .88rem;
  color: var(--gris);
  line-height: 1.9;
}

.formule-badge { margin: -6px 0 12px; }
.badge {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--nuit);
  color: var(--papier);
}
.badge-vege { background: #3E6B48; }
.piquant {
  display: inline-block;
  margin-left: 7px;
  font-size: .72rem;
  font-weight: 600;
  color: #A4341C;
  background: #FBE9E4;
  border: 1px solid #EBC4B9;
  padding: 1px 6px;
  border-radius: 2px;
}

.formule-options {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--trait);
}
.formule-options-titre {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gris);
  font-size: .95rem;
}
.formule-options ul { list-style: none; margin: 0; padding: 0; }
.formule-options li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  font-size: .95rem;
}
.option-prix {
  font-family: var(--serif);
  white-space: nowrap;
  color: var(--ambre-texte);
}

/* --- Carte du restaurant ------------------------------------------------ */
.carte-avis {
  background: #FCF3E3;
  border-left: 3px solid var(--corail);
  padding: 16px 20px;
  margin-bottom: 40px;
  font-size: .95rem;
}
.carte-avis p { margin: 0; max-width: none; }

.carte-groupe { margin-bottom: 52px; }
.carte-groupe h2 {
  font-size: 1.65rem;
  margin-bottom: .25em;
}
.carte-note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gris);
  margin-bottom: 22px;
}

.plats { list-style: none; margin: 0; padding: 0; }
.plat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--trait);
}
.plat:last-child { border-bottom: 0; }
.plat-nom { font-weight: 600; }
.plat-quantite {
  font-weight: 400;
  color: var(--gris);
  font-size: .9rem;
  margin-left: 4px;
}
.plats-serres .plat { padding: 8px 0; }
.note-vitrine {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gris);
  margin-top: 18px;
}
.plat-detail {
  grid-column: 1 / 2;
  font-size: .9rem;
  color: var(--gris);
  margin: 0;
}
.plat-prix {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--serif);
  font-size: 1.1rem;
  white-space: nowrap;
}
.vege {
  display: inline-block;
  margin-left: 8px;
  font-size: .72rem;
  font-weight: 600;
  color: #46704E;
  border: 1px solid #BED0C1;
  background: #F0F6F1;
  padding: 1px 6px;
  border-radius: 2px;
  vertical-align: 2px;
}

/* Emplacement a completer */
.tbc {
  background: #FFF3B0;
  color: #6B5600;
  padding: 1px 7px;
  border-radius: 2px;
  font-size: .88rem;
  font-family: var(--sans);
  font-style: normal;
}

/* --- Infos pratiques ---------------------------------------------------- */
.horaires { width: 100%; border-collapse: collapse; max-width: 460px; }
.horaires th, .horaires td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--trait);
  font-weight: 400;
}
.horaires th { width: 40%; font-weight: 600; }
.horaires .ferme { color: var(--gris); }
.horaires .aujourdhui { background: #FCF3E3; }
.section-sombre .horaires th,
.section-sombre .horaires td { border-bottom-color: rgba(255,255,255,.16); }
.section-sombre .horaires .aujourdhui { background: rgba(238,150,17,.20); }

.etat {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.etat-ouvert { background: #E4F0E6; color: #2E5C38; }
.etat-ferme  { background: #F0E4E4; color: #7A3030; }

.coordonnees { list-style: none; margin: 0 0 26px; padding: 0; }
.coordonnees li { padding: 7px 0; }
.coordonnees strong { font-family: var(--serif); font-weight: 600; }

/* --- Formulaire --------------------------------------------------------- */
.formulaire { max-width: 620px; }
.champ { margin-bottom: 20px; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.champ input, .champ textarea, .champ select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid #C6C4BC;
  border-radius: 2px;
  background: var(--papier);
  color: var(--nuit);
}
.champ input:focus, .champ textarea:focus, .champ select:focus {
  border-color: var(--indigo);
  outline: 2px solid rgba(39,64,94,.25);
  outline-offset: 0;
}
.champ textarea { min-height: 150px; resize: vertical; }
.piege { position: absolute; left: -9999px; }

.message { padding: 14px 18px; border-radius: 2px; margin-bottom: 26px; }
.message-ok    { background: #E4F0E6; border-left: 3px solid #2E5C38; }
.message-souci { background: #F7E7E2; border-left: 3px solid var(--corail); }
.message p { margin: 0; }
.message ul { margin: 8px 0 0; padding-left: 20px; }

/* --- Bandeau d'appel ---------------------------------------------------- */
.appel {
  background: var(--indigo);
  color: var(--papier);
  text-align: center;
  padding-block: clamp(40px, 6vw, 64px);
}
.appel h2 { color: var(--papier); }
.appel p { margin-inline: auto; color: #CDD6E2; }
.appel .heros-actions { justify-content: center; }

/* --- Pied de page ------------------------------------------------------- */
.pied {
  background: var(--nuit);
  color: #C9D0DA;
  padding-block: 52px 0;
  font-size: .95rem;
}
.pied a { color: #C9D0DA; }
.pied a:hover { color: var(--papier); }
.pied h3 {
  color: var(--papier);
  font-size: 1.05rem;
  margin-bottom: .7em;
}
.pied-logo { height: 52px; width: auto; margin-bottom: 14px; }
.pied-grille {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .pied-grille { grid-template-columns: 1fr; } }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: 4px 0; }
.pied-bas {
  margin-top: 44px;
  padding-block: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* --- Fil d'Ariane ------------------------------------------------------- */
.fil {
  font-size: .85rem;
  color: var(--gris);
  padding-top: 22px;
}
.fil a { color: var(--gris); }

/* --- Pages simples ------------------------------------------------------ */
.texte h2 { margin-top: 1.8em; }
.texte h2:first-child { margin-top: 0; }

/* --- Mobile ------------------------------------------------------------- */
@media (max-width: 900px) {
  .bascule-etiquette { display: block; }
  .entete-barre { flex-wrap: wrap; gap: 12px; }
  .marque { flex: 1 1 auto; }
  .nav-tel { order: 2; }
  .bascule-etiquette { order: 3; display: block; }
  .nav {
    order: 4;
    margin-left: 0;
    flex-basis: 100%;
    display: none;
  }
  .bascule:checked ~ .nav { display: block; }
  .nav-liste {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 14px;
  }
  .nav-liste li { width: 100%; border-top: 1px solid var(--trait); }
  .nav-liste a { display: block; padding: 13px 0; border-bottom: 0; }
  .nav-liste .actif a { color: var(--corail); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .marque-nom { font-size: 1.3rem; }
  .marque-kana { display: none; }
  .heros-actions .bouton { width: 100%; text-align: center; }
  .br-large { display: none; }
  .noren { height: 28px; }
  .noren i:nth-child(even) { display: none; }
  .nav-tel { padding: 8px 14px; font-size: .98rem; }
  .tel-long { display: none; }
  .tel-court { display: inline; }
}

@media print {
  .entete, .pied, .noren, .heros-actions, .appel { display: none; }
  body { background: #fff; font-size: 12pt; }
}
