/* Riposte — styles du site */

@font-face {
  font-family: "PP Mori";
  src: url("/fonts/PPMori-Extrabold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #f05a22;
  --encre: #1c1208;
  --creme: #fcf6ee;
  --trait: rgba(28, 18, 8, .18);
  --trait-clair: rgba(252, 246, 238, .25);
  --entete: 68px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --titre: "PP Mori", "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --texte: "Arial Narrow", "Archivo Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--orange); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--orange);
  color: var(--encre);
  font-family: var(--texte);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.titre {
  font-family: var(--titre);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
}

/* ---------- En-tête fixe ---------- */

.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--entete);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gouttiere);
  background: var(--orange);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.entete.defile { border-bottom-color: var(--trait); }

.entete-gauche {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 24px);
}
.langues { display: flex; gap: 2px; font-family: var(--titre); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.langues a { text-decoration: none; padding: 4px 6px; opacity: .45; }
.langues a:hover { opacity: .8; }
.langues a[aria-current] { opacity: 1; border-bottom: 1.5px solid var(--encre); }

.burger {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  align-content: center;
  gap: 7px;
}
.burger span { display: block; height: 2px; background: var(--encre); }

.entete-logo img { height: 26px; width: auto; }

.entete-reserver {
  justify-self: end;
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid var(--encre);
  transition: background-color .2s, color .2s;
}
.entete-reserver:hover { background: var(--encre); color: var(--orange); }

main { padding-top: var(--entete); }

/* ---------- Menu plein écran ---------- */

.navigation {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--orange);
  display: flex;
  flex-direction: column;
  padding: 0 var(--gouttiere) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.navigation.ouverte { opacity: 1; visibility: visible; }
.navigation-haut {
  height: var(--entete);
  display: flex;
  align-items: center;
}
.fermer {
  width: 32px; height: 32px;
  padding: 0; border: 0; background: none; cursor: pointer;
  position: relative;
}
.fermer::before, .fermer::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 15px;
  height: 2px; background: var(--encre);
}
.fermer::before { transform: rotate(45deg); }
.fermer::after { transform: rotate(-45deg); }

.navigation ul {
  list-style: none;
  margin: auto 0;
  padding: 0;
}
.navigation li a {
  display: block;
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
  font-size: clamp(40px, 9vw, 104px);
  line-height: 1.1;
  text-decoration: none;
}
.navigation li a:hover { color: var(--creme); }
.navigation-pied { font-size: 15px; }

/* ---------- Accueil : héros ---------- */

.heros {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vh, 48px) var(--gouttiere) clamp(24px, 4vh, 48px);
  text-align: center;
  overflow: hidden;
}

/* Version photo : ajouter la classe heros--photo et une image dans .heros-fond */
.heros-fond {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.heros--photo {
  min-height: calc(100svh - var(--entete));
  color: var(--creme);
  place-items: end center;
  padding-bottom: clamp(48px, 9vh, 96px);
}
.heros--photo .heros-fond { object-position: center 58%; }
.heros--photo .heros-logo { width: min(100%, 760px); margin-bottom: 32px; }
.heros-titre { margin: 0; font-size: clamp(64px, 14vw, 160px); }
.heros--menu .heros-titre { color: var(--orange); }
.heros--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0) 40%, rgba(0,0,0,.55));
}
.heros-contenu { position: relative; z-index: 1; width: 100%; }

.heros-logo { width: min(100%, 1100px); margin: 0 auto 32px; }
.heros--photo .heros-logo { filter: invert(1); }

.heros-cta {
  display: inline-block;
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(28px, 5vw, 52px);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 4px;
}
.heros-cta:hover { opacity: .75; }

.heros-infos {
  margin-top: 28px;
  font-size: 15px;
  letter-spacing: .02em;
}

/* ---------- Accueil : texte ---------- */

.histoire {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gouttiere) clamp(80px, 12vw, 160px);
}
.histoire p { margin: 0 0 1.4em; font-size: 19px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.histoire .chapeau {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.45;
}
.citation {
  margin: clamp(40px, 7vh, 72px) 0 0;
  text-align: center;
  font-size: clamp(30px, 5vw, 56px);
}

/* ---------- Page presse ---------- */

.presse {
  padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 12vw, 160px);
}
.presse-entete {
  text-align: center;
  font-size: clamp(40px, 7vw, 80px);
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.avis-defile {
  position: sticky;
  overflow: hidden;
  padding: 0 var(--gouttiere);
}
.avis-piste {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  will-change: transform;
}
.avis {
  flex: 0 0 calc((100% - 2 * clamp(16px, 2vw, 28px)) / 3);
  aspect-ratio: 1;
  margin: 0;
  padding: clamp(20px, 2.4vw, 36px);
  background: transparent;
  border: 2px solid var(--encre);
  display: flex;
  flex-direction: column;
}
.avis-etoiles { margin: 0 0 12px; color: var(--encre); font-size: 22px; letter-spacing: 3px; line-height: 1; }
.avis blockquote {
  margin: 0;
  flex: 1;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.45;
  overflow: hidden;
}
.avis figcaption { margin-top: 16px; font-size: 14px; letter-spacing: .02em; }
.avis figcaption span { opacity: .6; }

.presse-liste {
  list-style: none;
  max-width: 1100px;
  margin: clamp(56px, 8vw, 104px) auto 0;
  padding: 0 var(--gouttiere);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.presse-liste a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 24px 0 0;
  border-top: 3px solid var(--encre);
  text-decoration: none;
}
.presse-media { font-size: clamp(26px, 3vw, 36px); }
.presse-titre { font-size: 19px; line-height: 1.35; }
.presse-date { font-size: 14px; opacity: .7; }
.presse-lire { margin-top: auto; padding-top: 8px; text-decoration: underline; text-underline-offset: 4px; }
.presse-liste a:hover .presse-lire { opacity: .7; }

/* ---------- Accueil : illustrations ---------- */

.illustrations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 4vw, 64px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gouttiere) clamp(80px, 12vw, 160px);
}

/* ---------- Pied de page (style accordéon) ---------- */

.pied {
  background: var(--encre);
  color: var(--creme);
  padding: 48px var(--gouttiere) 32px;
}
.pied-interieur { max-width: 1100px; margin: 0 auto; }

.pied details { border-top: 1px solid var(--trait-clair); }
.pied details:last-of-type { border-bottom: 1px solid var(--trait-clair); }
.pied summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 20px;
}
.pied summary::-webkit-details-marker { display: none; }
.pied summary::after { content: "+"; font-family: var(--texte); font-size: 26px; font-weight: 300; }
.pied details[open] summary::after { content: "–"; }
.pied .contenu { padding: 0 0 28px; }

.colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pied h4 {
  margin: 0 0 8px;
  font-family: var(--titre);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 14px;
  opacity: .7;
}
.pied p { margin: 0 0 16px; }
.pied a { text-decoration: none; border-bottom: 1px solid var(--trait-clair); }
.pied a:hover { border-bottom-color: var(--creme); }

.heures { border-collapse: collapse; }
.heures td { padding: 2px 24px 2px 0; }
.heures tr.aujourdhui { color: var(--orange); }
.heures tr.ferme td:last-child { opacity: .6; }

.signature { margin-top: 56px; }
.signature-texte { font-size: 14px; }
.signature-texte .titre { font-size: 22px; margin-bottom: 8px; }
.signature-texte a { border: 0; }
.pied .insta svg { width: 20px; height: 20px; fill: var(--creme); vertical-align: -4px; margin-right: 6px; }

/* Formulaire de contact */
.champ { position: relative; margin-bottom: 16px; }
.champ label {
  position: absolute; left: 0; top: 2px;
  font-size: 12px; opacity: .7;
  pointer-events: none;
  transition: top .15s, font-size .15s;
}
.champ input:placeholder-shown:not(:focus) + label,
.champ textarea:placeholder-shown:not(:focus) + label { top: 22px; font-size: 16px; }
.champ input, .champ textarea {
  display: block; width: 100%;
  padding: 22px 0 8px;
  border: 0; border-bottom: 1px solid var(--trait-clair); border-radius: 0;
  background: transparent; color: var(--creme);
  font: 700 16px var(--texte);
  outline: none;
}
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:focus, .champ textarea:focus { border-bottom-color: var(--creme); }
.cache { display: none; }

.bouton {
  display: inline-block;
  padding: 12px 28px;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.pied .bouton:hover { background: var(--creme); color: var(--encre); }

/* ---------- Page menu ---------- */

.carte {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--gouttiere);
}
.carte h2:first-child { margin-top: 0; }
.carte h2 {
  font-size: 28px;
  margin: 56px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--encre);
}
.carte ul { list-style: none; margin: 0; padding: 0; }
.carte li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  font-size: 18px;
}
.carte li::after { content: none; }
.carte .points {
  flex: 1;
  border-bottom: 1.5px dotted var(--trait);
  transform: translateY(-4px);
}
.carte .prix { font-variant-numeric: tabular-nums; }
.carte-note { margin-top: 48px; font-size: 15px; text-align: center; }

.envol {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gouttiere) 80px;
}

/* Onglets du menu */
.onglets {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 3vw, 24px);
  margin: 0 0 clamp(40px, 6vw, 64px);
  scroll-margin-top: calc(var(--entete) + 16px);
}
.onglet {
  font-family: var(--titre);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(18px, 3.4vw, 26px);
  text-decoration: none;
  padding: 10px clamp(12px, 3vw, 24px);
  border: 1.5px solid var(--encre);
  transition: background-color .2s, color .2s;
}
.onglet:hover { background: rgba(28, 18, 8, .08); }
.onglet[aria-selected="true"] { background: var(--encre); color: var(--orange); }
.onglet-panneau[hidden] { display: none; }
.onglet-panneau { scroll-margin-top: calc(var(--entete) + 150px); }

.carte .nom { flex: 0 1 auto; }
.carte .desc { display: block; font-size: 14px; opacity: .75; margin-top: 2px; }
.carte .points { min-width: 24px; }
.carte .prix { white-space: nowrap; }
#vin li { font-size: 16px; }

/* Instagram sous le sanglier */
.insta-accueil,
.sanglier-insta a {
  font-size: 18px;
}
.insta-accueil {
  text-align: center;
  margin: calc(-1 * clamp(56px, 9vw, 128px)) 0 0;
  padding: 0 var(--gouttiere) clamp(64px, 10vw, 120px);
}
.insta-accueil a,
.sanglier-insta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.insta-accueil svg,
.sanglier-insta svg { width: 26px; height: 26px; fill: var(--encre); }
.insta-accueil a:hover,
.sanglier-insta a:hover { opacity: .7; }
.sanglier-insta {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 0 var(--gouttiere) clamp(64px, 10vw, 120px);
}
.sanglier-insta img { width: min(280px, 60vw); }

/* ---------- Page merci ---------- */

.merci {
  min-height: calc(100svh - var(--entete) - 200px);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 80px var(--gouttiere);
}
.merci .titre { font-size: clamp(40px, 7vw, 80px); margin: 0 0 16px; }

/* ---------- Cellulaire ---------- */

@media (max-width: 767px) {
  body { font-size: 16px; }
  .entete-logo img { height: 16px; }
  .entete-gauche { gap: 8px; }
  .langues { font-size: 12px; }
  .langues a { padding: 4px 3px; }
  .entete-reserver { font-size: 13px; padding: 6px 10px; }
  .histoire p { font-size: 17px; }
  .illustrations { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .colonnes { grid-template-columns: 1fr; gap: 8px; }
  .avis-defile { position: static; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .avis-defile::-webkit-scrollbar { display: none; }
  .avis { flex-basis: 82%; scroll-snap-align: center; aspect-ratio: auto; min-height: 300px; }
  .presse-liste { grid-template-columns: 1fr; gap: 40px; }
}
