/* =====================================================================
   Café Petite Fontaine — feuille de style unique
   Organisation : variables → base → composants → pages → responsive
   ===================================================================== */

/* ---------- Variables ----------
   Couleurs relevées directement sur le logo du café. */
:root {
  --brun:        #3a2a1e;
  --brun-clair:  #6b5343;
  --creme:       #faf6f0;
  --creme-fonce: #f2e9de;
  --or:          #ba5603;   /* orange du logo */
  --or-fonce:    #8e4e1b;   /* cercle brun du logo */
  --blanc:       #ffffff;
  --texte:       #2c2018;
  --texte-doux:  #6b5b4d;
  --bordure:     #e3d8c9;

  --largeur:     1140px;
  --rayon:       10px;
  --ombre:       0 2px 12px rgba(58, 42, 30, .10);
  --ombre-forte: 0 8px 28px rgba(58, 42, 30, .16);
  --transition:  .25s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--brun);
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: var(--or-fonce); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 20px;
}

.centre { text-align: center; }

.skip-lien {
  position: absolute; left: -9999px;
  background: var(--brun); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-lien:focus { left: 10px; top: 10px; }

/* Lu par les lecteurs d'écran et les moteurs de recherche, invisible à l'œil */
.visuellement-cache {
  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: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}
.entete__interieur {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__image { width: 48px; height: 48px; flex: 0 0 48px; }
.logo__nom {
  font-family: Georgia, serif; font-size: 1.3rem;
  font-weight: 700; color: var(--brun); letter-spacing: .2px;
}
.logo:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--texte); font-size: .97rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.nav a:hover { color: var(--or-fonce); text-decoration: none; border-color: var(--or); }
.nav a.actif { color: var(--or-fonce); border-color: var(--or); }
.nav__tel {
  background: var(--brun); color: #fff !important;
  padding: 9px 18px !important; border-radius: 999px;
  border: none !important; font-size: .9rem !important;
}
.nav__tel:hover { background: var(--or-fonce); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.burger span {
  width: 26px; height: 2px; background: var(--brun);
  transition: var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
}
.bouton:hover { text-decoration: none; transform: translateY(-1px); }
.bouton--plein   { background: var(--or); color: #fff; }
.bouton--plein:hover { background: var(--or-fonce); }
.bouton--contour { border-color: currentColor; color: #fff; }
.bouton--contour:hover { background: rgba(255,255,255,.14); }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section--claire { background: var(--creme); }
.section__etroite { max-width: 760px; }
.section__titre {
  font-size: 2rem; text-align: center; margin-bottom: 1.4em;
}
.page__titre { font-size: 2.4rem; margin-bottom: .2em; }
.page__soustitre { color: var(--texte-doux); margin-bottom: 2.5em; }
.texte-intro { font-size: 1.12rem; color: var(--texte-doux); }
.texte-long p { margin-bottom: 1.3em; }
.vide {
  padding: 40px; text-align: center; color: var(--texte-doux);
  background: var(--creme); border-radius: var(--rayon);
}

/* ---------- Bandeau d'accroche (accueil) ----------
   On affiche la bannière du café telle quelle : elle porte déjà
   le logo, le slogan et les souhaits de bienvenue trilingues. */
.heros { background: #000; }
.heros__banniere {
  display: block; width: 100%; max-height: 78vh;
  object-fit: contain; margin: 0 auto;
}
.heros__barre {
  background: var(--brun); padding: 22px 20px;
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; align-items: center;
}

/* ---------- Bandeau infos ---------- */
.bandeau-infos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center;
}
.bandeau-infos__titre {
  font-size: 1.05rem; text-transform: uppercase;
  letter-spacing: 1.4px; color: var(--or-fonce);
}
.bandeau-infos p { color: var(--texte-doux); margin: 0; }

/* ---------- Cartes de plats ---------- */
.grille-plats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px; margin-bottom: 42px;
}
.carte-plat {
  background: #fff; border: 1px solid var(--bordure);
  border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); transition: var(--transition);
  display: flex; flex-direction: column;
}
.carte-plat:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.carte-plat__image { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--creme-fonce); }
.carte-plat__corps { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.carte-plat__nom { font-size: 1.15rem; margin-bottom: .25em; }
.carte-plat__desc { font-size: .92rem; color: var(--texte-doux); flex: 1; }
.carte-plat__prix { font-weight: 700; color: var(--or-fonce); margin: 0; }

/* ---------- Lien vers le diaporama plein écran ---------- */
.menu__diaporama-lien { margin: -1.5em 0 2.5em; }

/* ---------- Onglets du menu ---------- */
.onglets {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 50px;
}
.onglets a {
  padding: 9px 20px; border: 1px solid var(--bordure); border-radius: 999px;
  color: var(--texte); font-size: .94rem; background: #fff; transition: var(--transition);
}
.onglets a:hover { background: var(--brun); color: #fff; border-color: var(--brun); text-decoration: none; }

/* ---------- Catégorie ---------- */
.categorie { margin-bottom: 70px; }
.categorie__titre {
  font-size: 1.8rem; padding-bottom: .3em;
  border-bottom: 2px solid var(--or); display: inline-block; margin-bottom: 1em;
}

/* ---------- Diaporama ---------- */
.diapo {
  position: relative; border-radius: var(--rayon);
  overflow: hidden; box-shadow: var(--ombre); margin-bottom: 30px;
  background: var(--creme-fonce);
}
.diapo__piste { display: flex; transition: transform .45s ease; }
.diapo__slide { position: relative; min-width: 100%; margin: 0; }
.diapo__slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.diapo__legende {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 40px 26px 20px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
}
.diapo__nom  { font-family: Georgia, serif; font-size: 1.3rem; }
.diapo__prix { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }

.diapo__fleche {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--brun);
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.diapo__fleche:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.diapo__fleche--gauche { left: 14px; }
.diapo__fleche--droite { right: 14px; }

.diapo__points {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.diapo__point {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.5); cursor: pointer; transition: var(--transition);
}
.diapo__point.actif { background: #fff; width: 24px; border-radius: 999px; }

/* ---------- Liste du menu ---------- */
.liste-menu { list-style: none; margin: 0; padding: 0; }
.liste-menu__ligne {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 15px 0; border-bottom: 1px dashed var(--bordure);
}
.liste-menu__nom  { font-weight: 600; display: block; }
.liste-menu__desc { font-size: .92rem; color: var(--texte-doux); display: block; }
.liste-menu__prix { font-weight: 700; color: var(--or-fonce); white-space: nowrap; }

/* ---------- Galerie ---------- */
.galerie {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px;
}
.galerie__element { margin: 0; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.galerie__element img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: var(--transition); }
.galerie__element:hover img { transform: scale(1.05); }
.galerie__element figcaption {
  padding: 10px 14px; font-size: .88rem; color: var(--texte-doux); background: #fff;
}

/* ---------- Contact ---------- */
.contact__grille { display: grid; grid-template-columns: 1fr 1.3fr; gap: 46px; align-items: start; }
.contact__soustitre {
  font-size: 1rem; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--or-fonce); margin-top: 1.6em;
}
.contact__soustitre:first-child { margin-top: 0; }
.contact__tel { font-size: 1.35rem; font-weight: 700; }
.contact__action { margin-top: 2em; }
.contact__carte { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.contact__carte iframe { display: block; }

/* ---------- Pied de page ---------- */
.pied { background: var(--brun); color: rgba(255,255,255,.82); padding: 55px 0 0; margin-top: 0; }
.pied a { color: rgba(255,255,255,.92); }
.pied__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-bottom: 40px; }
.pied__titre { color: #fff; font-size: 1.1rem; margin-bottom: .6em; }
.pied__texte { font-size: .94rem; margin-bottom: .5em; }
.pied__bas {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; padding-bottom: 22px;
  border-top: 1px solid rgba(255,255,255,.16); font-size: .87rem;
}
.pied__bas p { margin: 0; }
.pied__reseaux { display: flex; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact__grille,
  .bandeau-infos,
  .pied__grille { grid-template-columns: 1fr; }
  .bandeau-infos { gap: 26px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 50px 0; }
  .burger { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre); padding: 8px 20px 18px;
    display: none;
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--bordure); }
  .nav a.actif { border-color: var(--bordure); }
  .nav__tel { text-align: center; margin-top: 12px; }
  .heros__barre .bouton { width: 100%; max-width: 320px; }
  .logo__image { width: 40px; height: 40px; flex-basis: 40px; }
  .logo__nom { font-size: 1.05rem; }
  .diapo__legende { padding: 30px 16px 14px; }
  .diapo__nom { font-size: 1.05rem; }
}
