/* =========================================================
   Le Bistro d'Armando — feuille de style unique
   Reprise fidèle du site WordPress/Divi (nov. 2023)
   ========================================================= */

:root {
  --bleu: #0276ba;
  --bleu-fonce: #005cc8;
  --cyan: #23cde7;
  --orange: #fead02;
  --nuit: #000d16;
  --gris: #494949;
  --texte: #1a1a1a;
  --blanc: #ffffff;
  --ombre: 0 20px 60px rgba(6, 39, 58, 0.15);
  --serif: "Baskervville", Georgia, "Times New Roman", serif;
  --sans: "Hind", "Helvetica Neue", Arial, sans-serif;
  --largeur: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bleu); }
a:hover { color: var(--bleu-fonce); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0 0 .5em; line-height: 1.3; }

.conteneur { width: min(var(--largeur), 90%); margin-inline: auto; }
.etroit { width: min(700px, 90%); margin-inline: auto; }
.centre { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--blanc);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 90px; gap: 1rem;
}
.logo img { width: 260px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.nav a {
  font-family: var(--serif); font-weight: 700; font-size: 17px;
  color: #000; text-decoration: none; padding: .4rem 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--bleu); }
.nav a[aria-current="page"] { color: var(--bleu); border-bottom-color: var(--bleu); }

.burger { display: none; }

@media (max-width: 860px) {
  .logo img { width: 200px; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: #000; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blanc); box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    display: none;
  }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 5%; }
  .nav li + li { border-top: 1px solid #eee; }
  .nav a { display: block; padding: .9rem 0; border: 0; }
  .entete.ouvert .nav { display: block; }
  .entete.ouvert .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .entete.ouvert .burger span:nth-child(2) { opacity: 0; }
  .entete.ouvert .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Bandeau (hero) ---------- */
.bandeau {
  position: relative; isolation: isolate;
  color: var(--blanc); text-align: center;
  background-color: #000;
  background-size: cover; background-position: center;
  padding: max(12%, 70px) 0;
}
.bandeau::before { /* dégradé Divi : transparent → bleu nuit */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--nuit) 100%);
}
.bandeau::after { /* motif « vagues » discret */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M0 10 Q20 0 40 10 T80 10' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 80px 20px;
}
.bandeau--accueil { background-image: url("../img/hero-facade.webp"); }
.bandeau--page { background-image: url("../img/salle.webp"); padding: max(7%, 50px) 0 max(9%, 60px); }

.bandeau .poisson { width: 218px; margin: 0 auto 30px; }
.bandeau h1 { font-size: clamp(28px, 6vw, 72px); line-height: 1.2; color: var(--blanc); }
.bandeau p { font-size: clamp(14px, 1.6vw, 18px); line-height: 1.6; margin: 0 auto 47px; max-width: 640px; }
.bandeau--page p { margin-bottom: 0; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  color: var(--blanc); background: var(--bleu);
  padding: 18px 32px; border-radius: 100px;
  transition: background .2s, transform .2s;
}
.bouton:hover { background: var(--bleu-fonce); color: var(--blanc); transform: translateY(-2px); }
.bouton:focus-visible, .nav a:focus-visible, .burger:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section--tentacule-haut { background: url("../img/tentacule.webp") no-repeat top right / 26% auto; }
.section--tentacule-bas { background: url("../img/tentacule-inverse.webp") no-repeat bottom left / auto 100%; }
.section--tentacule-xl { background: url("../img/tentacule-xl.webp") no-repeat top right / contain; }
@media (max-width: 860px) {
  .section { padding: 60px 0; }
  .section--tentacule-haut, .section--tentacule-bas, .section--tentacule-xl { background-size: 60% auto; }
}

.surtitre {
  font-family: var(--serif); font-size: 14px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: .4rem;
}
.titre-section { font-size: clamp(22px, 4vw, 48px); line-height: 1.35; color: var(--bleu); }
.titre-gris { color: var(--gris); }

.separateur { width: min(300px, 60%); margin: 0 auto; }

/* ---------- Présentation (accueil) ---------- */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: center; }
.deux-colonnes .portrait { justify-self: center; max-width: 409px; }
.presentation .poisson-deco { width: 37%; margin: .5rem 0 1rem; }
.presentation p { margin: 0 0 1em; }

@media (max-width: 860px) {
  .deux-colonnes { grid-template-columns: 1fr; }
  .presentation .texte { text-align: center; }
  .presentation .poisson-deco { margin-inline: auto; }
  .deux-colonnes .portrait { max-height: 400px; width: auto; }
}

/* ---------- Plats phares (accueil) ---------- */
.plats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; margin: 50px 0; }
.plats > img { width: 100%; height: 100%; object-fit: cover; }
.plats .liste { background: var(--blanc); padding: 6%; box-shadow: var(--ombre); }
.plats h3 { color: var(--bleu); font-size: 20px; margin-bottom: .2rem; }
.plats p { margin: 0 0 1.4rem; }
.plats p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .plats { grid-template-columns: 1fr; } .plats > img { max-height: 420px; } }

/* ---------- La carte ---------- */
.carte-rubrique { padding: 70px 0 30px; }
.carte-rubrique + .separateur-carte { margin: 10px auto 0; }
.carte-rubrique h2 { text-align: center; color: var(--gris); font-size: clamp(22px, 4vw, 48px); margin-bottom: 1.5rem; }
.carte-note { text-align: center; margin: -0.5rem auto 2rem; }
.carte-note strong { display: block; font-family: var(--serif); color: var(--bleu); }
.carte-note span { color: #555; font-size: 15px; }

.plat { text-align: center; margin: 0 auto 2.2rem; max-width: 700px; }
.plat h3 { font-size: clamp(15px, 2vw, 20px); color: var(--bleu); line-height: 1.5; margin: 0; }
.plat .detail { display: block; font-family: var(--serif); font-weight: 700; color: var(--bleu); font-size: clamp(14px, 1.8vw, 18px); }
.plat .en { margin: .3rem 0 .1rem; color: #000; line-height: 1.6; font-size: 15px; font-style: italic; }
.plat .prix { color: var(--orange); font-weight: 700; font-size: 17px; margin: 0; }

.menus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 2rem; }
.carte-menu {
  background: var(--blanc); box-shadow: var(--ombre); padding: 30px;
  text-align: center; display: flex; flex-direction: column;
}
.carte-menu h3 { color: var(--bleu); font-size: 20px; margin-bottom: 0; }
.carte-menu .en { font-style: italic; margin: 0 0 1rem; color: #555; font-size: 15px; }
.carte-menu ul { list-style: none; padding: 0; margin: 0 0 1rem; font-family: var(--serif); color: var(--bleu); font-weight: 700; line-height: 1.5; }
.carte-menu li { margin-bottom: .8rem; }
.carte-menu li small { display: block; font-family: var(--sans); font-weight: 400; color: #555; font-size: 14px; }
.carte-menu .ou { color: var(--gris); margin: .2rem 0 1rem; }
.carte-menu .prix { color: var(--orange); font-weight: 700; font-size: 20px; margin: auto 0 0; }
.carte-menu .formule { margin-bottom: 1.2rem; }
.carte-menu .formule .prix { margin: .2rem 0 0; font-size: 18px; }
@media (max-width: 960px) { .menus { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.galerie figure { margin: 0; background: var(--blanc); padding: 30px; box-shadow: var(--ombre); }
.galerie img { width: 100%; aspect-ratio: 511 / 850; object-fit: cover; }
@media (max-width: 860px) { .galerie { grid-template-columns: repeat(2, 1fr); gap: 16px; } .galerie figure { padding: 14px; } }
@media (max-width: 480px) { .galerie { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.cartes-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.carte-info { background: var(--blanc); box-shadow: var(--ombre); padding: 30px; text-align: center; }
.carte-info h2 { font-size: 20px; color: var(--bleu); margin: 0 0 .6rem; }
.carte-info h2 + * { margin-top: 0; }
.carte-info p { margin: 0 0 .5rem; }
.carte-info a { font-weight: 600; text-decoration: none; }
.carte-info a:hover { text-decoration: underline; }
.carte-info .bloc { margin-bottom: 1.6rem; }
.carte-info .bloc:last-child { margin-bottom: 0; }
.horaires { list-style: none; padding: 0; margin: 0; }
.horaires li { padding: .35rem 0; border-bottom: 1px solid #eef2f5; }
.horaires li:last-child { border-bottom: 0; }
.horaires .ferme { color: var(--gris); }

.lien-maps {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #4285f4; color: var(--blanc) !important;
  padding: .45rem 1rem; border-radius: 4px; font-size: 14px; margin-top: .4rem;
}
.lien-maps:hover { background: #2f6fd8; text-decoration: none !important; }

.carte-plan { margin-top: 50px; box-shadow: var(--ombre); line-height: 0; }
.carte-plan iframe { width: 100%; height: 420px; border: 0; }

@media (max-width: 960px) { .cartes-contact { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- Bloc réservation ---------- */
.cta { text-align: center; padding: 20px 0 90px; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--nuit); color: rgba(255, 255, 255, .8);
  padding: 60px 0 0; font-size: 15px; line-height: 1.7;
}
.pied .grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.pied h2 { font-size: 18px; color: var(--blanc); margin-bottom: .8rem; }
.pied .nom { font-family: var(--serif); font-size: 26px; color: var(--orange); margin: 0 0 .4rem; }
.pied p { margin: 0 0 .5rem; }
.pied a { color: var(--blanc); text-decoration: none; }
.pied a:hover { color: var(--cyan); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .35rem; }
.pied .bas {
  margin-top: 50px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px; color: rgba(255, 255, 255, .55);
}
@media (max-width: 860px) { .pied .grille { grid-template-columns: 1fr; gap: 28px; text-align: center; } }

/* ---------- Page 404 ---------- */
.page-404 { text-align: center; padding: 80px 0 120px; }
.page-404 h1 { font-size: clamp(26px, 4vw, 44px); color: var(--bleu); }
.page-404 img { width: min(360px, 70%); margin: 30px auto; }
.page-404 p { font-family: var(--serif); font-size: clamp(16px, 2vw, 21px); max-width: 700px; margin: 0 auto 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.carte-menu .formule h4 { font-size: 17px; color: var(--bleu); margin: 0; line-height: 1.4; }
.carte-menu .formule .en { margin: .1rem 0 0; }

/* ---------- Carte Google Maps (chargée au clic) ---------- */
.plan-attente {
  line-height: 1.6; text-align: center; padding: 50px 20px;
  background: #f1f6f9 url("../img/poisson.webp") no-repeat center 20px / 160px auto;
  padding-top: 90px;
}
.plan-attente p { max-width: 520px; margin: 0 auto 1rem; font-size: 15px; color: #444; }
.plan-attente .bouton { border: 0; cursor: pointer; margin-bottom: 1rem; }

/* ---------- Mentions légales ---------- */
.legal h2 { font-size: 22px; color: var(--bleu); margin: 2rem 0 .5rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 1rem; }
.pied .bas a { color: rgba(255, 255, 255, .75); text-decoration: underline; }
